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
func SR979a(a :inoutinoutInt){} // expected-error {{parameter may not have multiple 'inout', 'var', or 'let' specifiers}} {{17-23=}}
72
-
func SR979b(inout inout b:Int){}// expected-error {{parameter may not have multiple 'inout', 'var', or 'let' specifiers}} {{19-25=}}
73
-
// expected-error@-1 {{'inout' before a parameter name is not allowed, place it before the parameter type instead}} {{13-18=}} {{28-28=inout }}
73
+
func SR979b(inout inout b:Int){} // expected-error {{inout' before a parameter name is not allowed, place it before the parameter type instead}} {{13-18=}} {{28-28=inout }}
74
+
// expected-error@-1 {{parameter may not have multiple 'inout', 'var', or 'let' specifiers}} {{19-25=}}
74
75
func SR979c(let a:inoutInt){} // expected-error {{parameter may not have multiple 'inout', 'var', or 'let' specifiers}} {{13-16=}}
75
76
// expected-error @-1 {{'let' as a parameter attribute is not allowed}} {{13-16=}}
76
77
func SR979d(let let a:Int){} // expected-error {{'let' as a parameter attribute is not allowed}} {{13-16=}}
@@ -80,6 +81,7 @@ func SR979f(var inout x : Int) { // expected-error {{parameter may not have mult
80
81
// expected-error @-1 {{parameters may not have the 'var' specifier}} {{13-16=}}{{3-3=var x = x\n }}
81
82
x +=10
82
83
}
84
+
func SR979g(inout i:inoutInt){} // expected-error {{parameter may not have multiple 'inout', 'var', or 'let' specifiers}} {{13-18=}}
83
85
func SR979h(let inout x :Int){} // expected-error {{parameter may not have multiple 'inout', 'var', or 'let' specifiers}} {{17-23=}}
84
86
// expected-error @-1 {{'let' as a parameter attribute is not allowed}}
0 commit comments