mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
477 B
Swift
14 lines
477 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 var MyOtherClosureVar: (_ x: Swift.Int) -> Swift.Int
|
|
public let MyOtherClosureVar: (_ x: Int) -> Int
|