actonlang / acton

The Acton Programming Language
https://www.acton-lang.org/
BSD 3-Clause "New" or "Revised" License
80 stars 7 forks source link

`Leaking actor seal: mut` #1953

Closed plajjan closed 1 month ago

plajjan commented 1 month ago
actor Foo(cb: mut() -> None):
    pass

actor main(env):
    env.exit(0)

kll@Kristians-MacBook-Air builtins_auto % actonc actor_mutarg.act
Building file actor_mutarg.act
  Compiling actor_mutarg.act for release

ERROR: Error when compiling actor_mutarg module: Type error

  |
2 |actor Foo(cb: mut() -> None):
  |              ^^^
Leaking actor seal: mut

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

kll@Kristians-MacBook-Air builtins_auto %```

@nordlander ^^
nordlander commented 1 month ago

Resolved by #1954