I stumbled on this while searching for clues on a similar (but unfortunately not identical) error.
Here's the repro code and backtrace:
trait T
fun some() =>
"Do nothing"
class TClass is T
let _l: String
new create(l: String) =>
_l = consume l
fun some() =>
"Do nothing"
actor Act
let _c: T iso
new create(c: T iso) =>
_c = consume c
actor Main
new create(env: Env) =>
let c: T iso^ = TClass.create("")
let a: Act = Act.create(consume c)
Here's the repro code and backtrace:
Fails with
Using version 0.58.1-fe3895eb from the most recent release tag, running on Ubuntu 20.04 on Intel.
Originally posted by @nisanharamati in https://github.com/ponylang/ponyc/issues/4344#issuecomment-1953254548