Thread simple model of "ErasedLambdas" through proc layouts

But none of these paths are yet exercised.
This commit is contained in:
Ayaz Hafiz 2023-06-23 13:15:12 -05:00
parent 6eae480e36
commit c459757062
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
8 changed files with 79 additions and 11 deletions

View file

@ -1,5 +1,6 @@
# +set function_kind=erased
interface Test exposes [main] imports []
# +emit:mono
app "test" provides [main] to "./platform"
f = \s ->
if Bool.true
@ -8,5 +9,7 @@ f = \s ->
else \{} -> s
# ^^^^^^^^ {}* -[[#Attr.#Erased(33)]]-> Str
main = f ""
#^^^^{-1} {}w_a -[[#Attr.#Erased(33)]]-> Str
main = (f "") {}
# ^^^^ {} -[[#Attr.#Erased(33)]]-> Str
# -emit:mono