diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index e164eeb640..bdb9263e82 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -7203,6 +7203,11 @@ fn (mut g Gen) interface_table() string { if isym.kind != .interface_ { continue } + if isym.info !is ast.Interface { + // Do not remove this check, `isym.info` could be `&IError`. + // dump(isym) + continue + } inter_info := isym.info as ast.Interface if inter_info.is_generic { continue