From d9dd9679e7f4d835bf844a4a9b2f22083f20bd50 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 19 Jun 2020 11:16:51 +0200 Subject: [PATCH] cgen: fix a typo --- vlib/v/gen/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index ad1ff670f1..4a4af861d0 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -310,7 +310,7 @@ pub fn (mut g Gen) write_typeof_functions() { g.writeln('// >> typeof() support for sum types') for typ in g.table.types { 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) g.writeln('char * v_typeof_sumtype_${tidx}(int sidx) { /* $typ.name */ ') g.writeln(' switch(sidx) {')