mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
1f008fb0d0
And update tests to use them. This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130. Fixes rdar://169749886.
14 lines
494 B
Swift
14 lines
494 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-emit-module-interface(%t/main.swiftinterface) %s
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/main.swiftinterface)
|
|
// RUN: %FileCheck %s < %t/main.swiftinterface
|
|
|
|
// CHECK: import Swift
|
|
|
|
// CHECK: public let MyClosureVar: (Swift::Int) -> Swift::Int
|
|
public let MyClosureVar: (Int) -> Int = { $0 }
|
|
|
|
// CHECK: public let MyOtherClosureVar: (_ x: Swift::Int) -> Swift::Int
|
|
public let MyOtherClosureVar: (_ x: Int) -> Int = { x in x }
|