mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:51:03 +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
@@ -4,7 +4,7 @@
|
||||
|
||||
fn main() -> Int {
|
||||
var (Int,Int): t1 = (5, 2);
|
||||
var (Int,Int): t2 = (5,);
|
||||
var (Int,): t2 = (5,);
|
||||
if (t1 == t2) {
|
||||
return 1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user