I'm running into an issue when I try to generate (...
# compiler
r
I'm running into an issue when I try to generate (via IR) a suspend lambda. It fails validation because of duplicated nodes. It seems like during lowering, the body of the lambda is copied into the continuation class's
invokeSuspend
, but the original isn't deleted. Gists of the ir dump before lowering and after lowering (when the error happens). Note in the after lowering the original lambda's body on line 192, and the body in the continuation on line 210.
Huh, apparently I didn't make the lambda functions
local
visibility, and doing so fixed this.