mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Tuple restrictions (#486)
* implement tuple restrictions: (1) named fields after positional, (2) order matters * after_named_member => seen_named_member
This commit is contained in:
+1
-1
@@ -5,5 +5,5 @@
|
||||
fn f(Int: x, .d = Int: y, Int: z, .e = Int: a) => (x + y) - (z + a);
|
||||
|
||||
fn main() -> Int {
|
||||
return f(.e = 2, 1, 3, .d = 4);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user