diff --git a/internal/backends/compiler_wat/wir/instruction_emitter.go b/internal/backends/compiler_wat/wir/instruction_emitter.go index cc3006cfe8a9bed3937b50ae603910fede4da256..05b40b0c0c9333e4f551b8971766cfaf8f3b1695 100644 --- a/internal/backends/compiler_wat/wir/instruction_emitter.go +++ b/internal/backends/compiler_wat/wir/instruction_emitter.go @@ -924,7 +924,7 @@ func (m *Module) EmitPrintInterface(v Value) (insts []wat.Inst) { insts = append(insts, wat.NewInstConst(wat.I32{}, "123")) // { insts = append(insts, wat.NewInstCall("$runtime.waPrintRune")) - insts = append(insts, i.Extract("d").EmitPush()...) + insts = append(insts, i.Extract("d").(*aRef).Extract("d").EmitPush()...) insts = append(insts, wat.NewInstCall("$runtime.waPrintI32")) // data insts = append(insts, wat.NewInstConst(wat.I32{}, "44")) // ,