mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 17:30:16 +01:00
* implement tuple restrictions: (1) named fields after positional, (2) order matters * after_named_member => seen_named_member
14 lines
330 B
Plaintext
14 lines
330 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
fn main() -> Int {
|
|
var (Int,Int): t1 = (5, 2);
|
|
var (Int,): t2 = (5,);
|
|
if (t1 == t2) {
|
|
return 1;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|