Skip to content

Commit bd94891

Browse files
authored
Merge pull request #27679 from CodaFi/unicycle
Fixup a test
2 parents ff8c6e2 + 0381ae8 commit bd94891

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/NameBinding/name_lookup.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ _ = ShadowingGenericParameter<String>().foo(t: "hi")
614614
// rdar://problem/51266778
615615
struct PatternBindingWithTwoVars1 { var x = 3, y = x }
616616
// expected-error@-1 {{cannot use instance member 'x' within property initializer; property initializers run before 'self' is available}}
617+
// expected-error@-2 {{property 'x' references itself}}
617618

618619
struct PatternBindingWithTwoVars2 { var x = y, y = 3 }
619620
// expected-error@-1 {{property 'y' references itself}}

0 commit comments

Comments
 (0)