Skip to content

Commit bf0e659

Browse files
committed
Update tests to old behavior
1 parent 5a433f1 commit bf0e659

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/attr/attr_implements_bad_parse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-swift-frontend -parse -verify %s
22

33
struct S0 {
4-
@_implements(1, Foo) // OK. We can parse integers as types now, so this is fine. We will diagnose its incorrect usage during type checking.
4+
@_implements(1, Foo) // expected-error {{expected type}}
55
func f() { }
66
}
77

test/expr/postfix/init/unqualified.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Theodosia: Aaron {
6262

6363
// FIXME: We could optimistically parse this as an expression instead
6464
// expected-error@+2 {{initializers may only be declared within a type}}
65-
// expected-error@+1 {{integer unexpectedly used in a type position}}
65+
// expected-error@+1 {{expected parameter type following ':'}}
6666
init(z: 0)
6767
}
6868

@@ -98,7 +98,7 @@ struct AaronStruct {
9898

9999
// FIXME: We could optimistically parse this as an expression instead
100100
// expected-error@+2 {{initializers may only be declared within a type}}
101-
// expected-error@+1 {{integer unexpectedly used in a type position}}
101+
// expected-error@+1 {{expected parameter type following ':'}}
102102
init(y: 1)
103103
}
104104

0 commit comments

Comments
 (0)