Idris2/tests/node/nomangle001/nomangle.idr
Zoe Stafford 86c060ef13
Reimplement %nomangle in terms of %export (#2604)
* Reimplement %nomangle in terms of %export
Also deprecate %nomangle

* [ lint ] fix linter errors
2022-08-15 13:26:06 +01:00

16 lines
248 B
Idris

%nomangle "javascript:foo"
foo : Int -> Int
foo x = x
%nomangle "node:$_baz"
baz : Int -> Int
baz x = x
%nomangle "refc:idr_another_name"
"javascript:another_name"
anotherName : Int -> Int
anotherName x = x
main : IO ()
main = pure ()