X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2FcodeGen.spl;h=4062fb626d0eabd37e0b6b17c17b9cbdcf6057df;hb=d509f40d8fdf986a852b80326dd157f0b68117d1;hp=e92260f95c842ef35eddf42ab754c9c844bb6648;hpb=f37f138cce001a8feedc2660bdbbe648c600a643;p=cc1516.git diff --git a/examples/codeGen.spl b/examples/codeGen.spl index e92260f..4062fb6 100644 --- a/examples/codeGen.spl +++ b/examples/codeGen.spl @@ -33,6 +33,9 @@ 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) : []; + x.hd.snd = 8; + return; }