Skip to content

Commit ab9bff3

Browse files
committed
ModuleInterface: Adopt swiftinterface verification lit substitutions in escape-Type-and-Protocol.swift. Update the test to no longer expect @_hasInitialValue to be emitted since that attribute is intentionally dropped from interfaces when -enable-library-evolution is specified.
1 parent bdd08ac commit ab9bff3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/ModuleInterface/escape-Type-and-Protocol.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path - %s | %FileCheck %s
1+
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name main
2+
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name main
3+
// RUN: %FileCheck %s < %t.swiftinterface
24

35
// CHECK: public let Type: Swift.Int
46
public let Type = 0
@@ -17,7 +19,7 @@ public class B {
1719
// CHECK: }
1820
public class `Type` {}
1921

20-
// CHECK-NEXT: @_hasInitialValue public var `Type`: Swift.Int
22+
// CHECK-NEXT: public var `Type`: Swift.Int
2123
public var `Type` = 0
2224
// CHECK: }
2325
}

0 commit comments

Comments
 (0)