Support explicit generic parameters in function parameter lists (#1259)

This commit is contained in:
Richard Smith
2022-05-12 12:39:51 -07:00
committed by GitHub
parent 451004a44e
commit 27c8d1fc12
6 changed files with 151 additions and 53 deletions
+1 -1
View File
@@ -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);
}