> Error: internal error: environment misses: this
Likely means you're emitting a `symbol` in a place that it should be an `ident`. I have not taken a look at trying to fix it but properly desyming the typed ast will likely solve it. Otherwise I can suggest <https://github.com/beef331/traitor> as an alternative.