mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Thread simple model of "ErasedLambdas" through proc layouts
But none of these paths are yet exercised.
This commit is contained in:
parent
6eae480e36
commit
c459757062
8 changed files with 79 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue