diff --git a/vlib/compiler/cgen.v b/vlib/compiler/cgen.v index 00a1b78cf9..80df1ef54f 100644 --- a/vlib/compiler/cgen.v +++ b/vlib/compiler/cgen.v @@ -397,6 +397,7 @@ fn (v &V) interface_table() string { continue } mut methods := '' + sb.writeln('// NR methods = $t.gen_types.len') for i, gen_type in t.gen_types { methods += '{' for i, method in t.methods { @@ -410,11 +411,12 @@ fn (v &V) interface_table() string { // Speaker_Cat_index = 0 sb.writeln('int _${t.name}_${gen_type}_index = $i;') } - if t.methods.len == 0 { - methods = '{TCCSKIP(0)}' - } + if t.gen_types.len > 0 { +// methods = '{TCCSKIP(0)}' +// } sb.writeln('void* (* ${t.name}_name_table[][$t.methods.len]) = ' + '{ $methods }; ') +} continue } return sb.str() diff --git a/vlib/compiler/main.v b/vlib/compiler/main.v index 5038ecdbb0..9896278088 100644 --- a/vlib/compiler/main.v +++ b/vlib/compiler/main.v @@ -653,6 +653,7 @@ pub fn (v &V) get_user_files() []string { mut user_files := []string if v.pref.is_test { + // TODO this somtimes fails on CI user_files << filepath.join(v.vroot,'vlib','compiler','preludes','tests_assertions.v') }