pull/13730/head
pancake 2022-03-14 10:28:01 +01:00
parent f189bbd356
commit d435331d7a
2 changed files with 5 additions and 5 deletions

View File

@ -295,7 +295,7 @@ fn (mut g Gen) get_var_offset(var_name string) int {
fn (mut g Gen) gen_typeof_expr(it ast.TypeOf, newline bool) {
nl := if newline { '\n' } else { '' }
r := g.typ(it.expr_type)
r := g.typ(it.expr_type).name
g.learel(.rax, g.allocate_string('$r$nl', 3, .rel32))
}

View File

@ -1,4 +1,4 @@
&string
&string
&int
&int literal
string
string
int
int literal