X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=examples%2FcodeGen.spl;h=e5d938b915e10c70d60c7480b43daa9b73f07519;hb=39f7799760a30737f57fb2b8ccdb15074ee9ac45;hp=e92260f95c842ef35eddf42ab754c9c844bb6648;hpb=f37f138cce001a8feedc2660bdbbe648c600a643;p=cc1516.git diff --git a/examples/codeGen.spl b/examples/codeGen.spl index e92260f..e5d938b 100644 --- a/examples/codeGen.spl +++ b/examples/codeGen.spl @@ -33,6 +33,11 @@ main() { // //Bool y1 = isEmpty(x2); //gives weird type error, not sure why // isEmpty(x2); [Int] x1 = 8 : 2 : []; - isE(True).hd; - return x1.hd; + (Bool, Int) z = (True, 2); + var y = z.fst; + var x = (True, 5) : (False,0) : []; + var sdaf = isE(x1); + var z = isEmpty(x1); + x.hd.snd = 8; + return; }