mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 17:31:07 +01:00
Support explicit generic parameters in function parameter lists (#1259)
This commit is contained in:
+1
-1
@@ -15,6 +15,6 @@ fn f(x: i32, y: i32) -> i32 { return x + y; }
|
||||
fn Main() -> i32 {
|
||||
var xy: (i32, i32) = (1, 2);
|
||||
// should fail to type-check
|
||||
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/function/fail_call_with_tuple.carbon:[[@LINE+1]]: mismatch in tuple sizes, expected 2 but got 1
|
||||
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/function/fail_call_with_tuple.carbon:[[@LINE+1]]: wrong number of arguments in function call, expected 2 but got 1
|
||||
return f(xy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user