Add more tests for tuple type checking

This commit is contained in:
Sam Vervaeck 2024-01-21 03:41:43 +01:00
parent cb1a1521f5
commit 7b58a6c51f
Signed by: samvv
SSH key fingerprint: SHA256:dIg0ywU1OP+ZYifrYxy8c5esO72cIKB+4/9wkZj1VaY

View file

@ -1,5 +1,4 @@
let pair x y = (x, y) let pair x y = (x, y)
let p1 = pair 1 1 let p1 = pair 1 1
@ -14,3 +13,16 @@ let p3 = (False, 1)
@:Bool p3.0 @:Bool p3.0
@:Int p3.1 @:Int p3.1
@expect_diagnostic 2016
"foo".1
(1,2,3).2
@expect_diagnostic 2015
(1,2,3).3
@expect_diagnostic 2015
(1,2,3).4
@expect_diagnostic 2015
(1,2,3).5