mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix a typo
This commit is contained in:
parent
ef36520509
commit
d9dd9679e7
@ -310,7 +310,7 @@ pub fn (mut g Gen) write_typeof_functions() {
|
|||||||
g.writeln('// >> typeof() support for sum types')
|
g.writeln('// >> typeof() support for sum types')
|
||||||
for typ in g.table.types {
|
for typ in g.table.types {
|
||||||
if typ.kind == .sum_type {
|
if typ.kind == .sum_type {
|
||||||
sum_info := typ.info as table.SumTypee
|
sum_info := typ.info as table.SumType
|
||||||
tidx := g.table.find_type_idx(typ.name)
|
tidx := g.table.find_type_idx(typ.name)
|
||||||
g.writeln('char * v_typeof_sumtype_${tidx}(int sidx) { /* $typ.name */ ')
|
g.writeln('char * v_typeof_sumtype_${tidx}(int sidx) { /* $typ.name */ ')
|
||||||
g.writeln(' switch(sidx) {')
|
g.writeln(' switch(sidx) {')
|
||||||
|
Loading…
Reference in New Issue
Block a user