diff --git a/vlib/v/checker/check_types.v b/vlib/v/checker/check_types.v index 53398523d4..97aca546fe 100644 --- a/vlib/v/checker/check_types.v +++ b/vlib/v/checker/check_types.v @@ -363,6 +363,10 @@ pub fn (mut c Checker) check_basic(got ast.Type, expected ast.Type) bool { } pub fn (mut c Checker) check_matching_function_symbols(got_type_sym &ast.TypeSymbol, exp_type_sym &ast.TypeSymbol) bool { + if c.pref.translated { + // TODO too open + return true + } got_info := got_type_sym.info as ast.FnType exp_info := exp_type_sym.info as ast.FnType got_fn := got_info.func diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index 4a2e52beb9..0d6a0c7e0f 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -654,6 +654,9 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin } i++ } + '-is_o' { + res.is_o = true + } '-b', '-backend' { sbackend := cmdline.option(current_args, arg, 'c') res.build_options << '$arg $sbackend'