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
_ =Data<Int>() // expected-error {{missing argument for parameter #1 in call}}
335
335
_ =Data<Int>(0) // Ok
336
336
_ =Data<Int,String>(42,"") // Ok
337
-
_ =Data<Int>(42,"") // expected-error {{pack expansion requires that 'Int' and 'Int, String' have the same shape}}
337
+
_ =Data<Int>(42,"") // expected-error {{extra argument in call}}
338
338
_ =Data<Int,String>((42,""))
339
339
// expected-error@-1 {{initializer expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}} {{25-26=}} {{32-33=}}
340
340
_ =Data<Int,String,Float>(vals:(42,"",0))
341
-
// expected-error@-1 {{pack expansion requires that 'Int, String, Float' and '(Int, String, Int)' have the same shape}}
341
+
// expected-error@-1 {{initializer expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}}
342
342
_ =Data<Int,String,Float>((vals:42,"",0))
343
343
// expected-error@-1 {{initializer expects 3 separate arguments; remove extra parentheses to change tuple into separate arguments}} {{32-33=}} {{48-49=}}
344
344
_ =Data<Int,String,Float>(tuple)
345
345
// expected-error@-1 {{initializer expects 3 separate arguments}}
346
346
_ =Data<Int,String,Float>(x:42, tuple)
347
-
// expected-error@-1 {{pack expansion requires that 'Int, String, Float' and '(Int, String, Float)' have the same shape}}
347
+
// expected-error@-1 {{missing arguments for parameters #2, #2 in call}}
348
348
_ =Data<Int,String,Float>(x:42, tuple, y:1,2,3)
349
-
// expected-error@-1 {{pack expansion requires that 'Int, String, Float' and '(Int, String, Float)' have the same shape}}
349
+
// expected-error@-1 {{missing arguments for parameters #2, #2 in call}}
0 commit comments