Skip to content

Commit 2dbf1ec

Browse files
authored
Merge pull request swiftlang#22722 from compnerd/int-is-not-32
test: adjustment for Windows
2 parents 1cbc0b3 + e7bb21c commit 2dbf1ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Parse/objc_enum.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: %target-typecheck-verify-swift -enable-objc-interop
22

3-
@objc enum Foo: Int {
3+
@objc enum Foo: Int32 {
44
case Zim, Zang, Zung
55
}
66

7-
@objc enum Generic<T>: Int { // expected-error{{'@objc' enum cannot be generic}} {{1-7=}}
7+
@objc enum Generic<T>: Int32 { // expected-error{{'@objc' enum cannot be generic}} {{1-7=}}
88
case Zim, Zang, Zung
99
}
1010

@@ -30,7 +30,7 @@ class Bar {
3030
}
3131

3232
// <rdar://problem/23681566> @objc enums with payloads rejected with no source location info
33-
@objc enum r23681566 : Int { // expected-error {{'r23681566' declares raw type 'Int', but does not conform to RawRepresentable and conformance could not be synthesized}} expected-note {{declared raw type 'Int' here}}
33+
@objc enum r23681566 : Int32 { // expected-error {{'r23681566' declares raw type 'Int32', but does not conform to RawRepresentable and conformance could not be synthesized}} expected-note {{declared raw type 'Int32' here}}
3434
case Foo(progress: Int) // expected-error {{enum with raw type cannot have cases with arguments}}
3535
}
3636

0 commit comments

Comments
 (0)