Add a test for tuple unification
This commit is contained in:
parent
cd357e03f5
commit
368d2243f1
1 changed files with 8 additions and 0 deletions
|
@ -169,3 +169,11 @@ let a = Rect { width = 12, height = 12 }
|
||||||
|
|
||||||
a == z
|
a == z
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Tuple types are correctly inferred and unified
|
||||||
|
|
||||||
|
```
|
||||||
|
let foo_1 : (Int, Int, Int) = (1, 2, 3)
|
||||||
|
let foo_2 : (Int, Int, Int) = (1, 2, "foo")
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue