cgen: add an earlier error, to pin point the use of closures on windows
parent
dd835acb8d
commit
356ccf247f
|
@ -286,6 +286,9 @@ fn (mut g Gen) gen_fn_decl(node &ast.FnDecl, skip bool) {
|
|||
g.definitions.write_string(s)
|
||||
g.write(s)
|
||||
g.nr_closures++
|
||||
if g.pref.os == .windows {
|
||||
g.error('closures are not yet implemented on windows', node.pos)
|
||||
}
|
||||
}
|
||||
arg_str := g.out.after(arg_start_pos)
|
||||
if node.no_body || ((g.pref.use_cache && g.pref.build_mode != .build_module) && node.is_builtin
|
||||
|
|
Loading…
Reference in New Issue