Unify tuple types with tuples-of-types in the interpreter (#442)

This commit is contained in:
Geoff Romer
2021-04-12 16:13:00 -07:00
committed by GitHub
parent 22656c8e09
commit cf7c97bf28
7 changed files with 82 additions and 149 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
10: type error in call
expected: Tuple(0 = Int, 1 = Int)
actual: Tuple(0 = Tuple(0 = Int, 1 = Int))
expected: (0 = Int@0, 1 = Int@1)
actual: (0 = (0 = Int@6, 1 = Int@7)@8)
EXIT CODE: 255
+1 -1
View File
@@ -1,4 +1,4 @@
10: type error in return
expected: Tuple()
expected: ()
actual: Int
EXIT CODE: 255