Files
swift-mirror/test/SourceKit/DocSupport/doc_internal_closure_label.swift
T
Becca Royal-Gordon 1f008fb0d0 [ModuleInterface] Enable module selectors by default
And update tests to use them.

This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130.

Fixes rdar://169749886.
2026-02-20 00:35:23 -08:00

19 lines
1.5 KiB
Swift

// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t.module-cache)
//
// RUN: %target-swift-frontend -typecheck -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -emit-module-interface-path %t/label.swiftinterface -enable-library-evolution -module-cache-path %t.module-cache %s
// RUN: %FileCheck --check-prefix=SWIFT_INTERFACE %s < %t/label.swiftinterface
// RUN: %sourcekitd-test -req=doc-info -module label -- -Xfrontend -disable-implicit-concurrency-module-import -Xfrontend -disable-implicit-string-processing-module-import -I %t -target %target-triple -module-cache-path %t.module-cache > %t.response
// RUN: %diff -u %s.response %t.response
//
// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t.module-cache)
// RUN: %target-swift-frontend -emit-module %s -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -module-name label -emit-module-path %t/label.swiftmodule -module-cache-path %t.module-cache
// RUN: %sourcekitd-test -req=doc-info -module label -- -Xfrontend -disable-implicit-concurrency-module-import -Xfrontend -disable-implicit-string-processing-module-import -I %t -target %target-triple -module-cache-path %t.module-cache> %t.response
// RUN: %diff -u %s.response %t.response
public func foo(_ callback: (_ myInternalParam: Int) -> Void) {}
// SWIFT_INTERFACE: import Swift
// SWIFT_INTERFACE: public func foo(_ callback: (_ myInternalParam: Swift::Int) -> Swift::Void)