mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
23 lines
955 B
Swift
23 lines
955 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -module-name Library
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -module-name Library
|
|
// RUN: %FileCheck %s --check-prefixes=CHECK < %t/Library.swiftinterface
|
|
|
|
// Re-verify with -swift-version 6
|
|
// RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -swift-version 6 -module-name Library
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -module-name Library
|
|
// RUN: %FileCheck %s --check-prefixes=CHECK < %t/Library.swiftinterface
|
|
|
|
// CHECK-LABEL: public actor TestActor {
|
|
@available(SwiftStdlib 5.5, *)
|
|
public actor TestActor {
|
|
// FIXME: The convenience keyword should be omitted (rdar://130926278)
|
|
// CHECK: public convenience init(convenience: Swift.Int)
|
|
public init(convenience: Int) {
|
|
self.init()
|
|
}
|
|
// CHECK: public init()
|
|
public init() {}
|
|
}
|