Add ClosureCallOptions enum to describe how to switch calling lambda

This commit is contained in:
Ayaz Hafiz 2022-08-10 09:16:22 -07:00
parent 8d01e81aa7
commit fc4979e2ce
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
13 changed files with 1104 additions and 858 deletions

View file

@ -1,15 +1,17 @@
procedure Test.1 (Test.5):
let Test.2 : I64 = 42i64;
let Test.3 : {I64} = Struct {Test.2};
let Test.3 : I64 = StructAtIndex 0 Test.13;
let Test.13 : {I64} = Struct {Test.2};
ret Test.3;
procedure Test.3 (Test.9, #Attr.12):
let Test.2 : I64 = StructAtIndex 0 #Attr.12;
let Test.2 : I64 = StructAtIndex 0 Test.12;
let Test.12 : {I64} = Struct {#Attr.12};
ret Test.2;
procedure Test.0 ():
let Test.8 : {} = Struct {};
let Test.4 : {I64} = CallByName Test.1 Test.8;
let Test.4 : I64 = CallByName Test.1 Test.8;
let Test.7 : {} = Struct {};
let Test.6 : I64 = CallByName Test.3 Test.7 Test.4;
ret Test.6;