Open andrenth opened 5 years ago
More minimal example:
actor Main
let a: Array[String ref] = []
new create(env: Env) =>
None
fun foo() ? =>
let s = a(0)?
consume val s
Interesting note: replacing String ref
with String tag
results in no crash and the correct error message.
Hi
The (admittedly nonsense) code below triggers an assertion failure in ponyc:
Compiling with the latest ponyc from git, this leads to