You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/decl/overload.swift
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -568,10 +568,30 @@ enum SR_10084_E_10 {
568
568
569
569
enumSR_10084_E_11{
570
570
case A // expected-note {{found this candidate}} // expected-note {{'A' previously declared here}}
571
-
staticletA:SR_10084_E_11=.A // expected-note {{found this candidate}} // expected-error {{invalid redeclaration of 'A'}} // expected-error {{ambiguous use of 'A'}}
571
+
staticvarA:SR_10084_E_11=.A // expected-note {{found this candidate}} // expected-error {{invalid redeclaration of 'A'}} // expected-error {{ambiguous use of 'A'}}
572
572
}
573
573
574
574
enumSR_10084_E_12{
575
-
staticletA:SR_10084_E_12=.A // expected-note {{found this candidate}} // expected-note {{'A' previously declared here}} // expected-error {{ambiguous use of 'A'}}
575
+
staticvarA:SR_10084_E_12=.A // expected-note {{found this candidate}} // expected-note {{'A' previously declared here}} // expected-error {{ambiguous use of 'A'}}
576
576
case A // expected-note {{found this candidate}} // expected-error {{invalid redeclaration of 'A'}}
577
577
}
578
+
579
+
enumSR_10084_E_13{
580
+
case X // expected-note {{'X' previously declared here}}
581
+
structX<T>{} // expected-error {{invalid redeclaration of 'X'}}
0 commit comments