Sema: remove compile error for comptime function calls

Not sure why that was there - comptime function calls are already
implemented!
This commit is contained in:
Andrew Kelley 2021-05-13 20:09:25 -07:00
parent 2cee19ab21
commit 579694893e

View File

@ -2147,11 +2147,20 @@ fn analyzeCall(
);
}
if (modifier == .compile_time) {
return sema.mod.fail(&block.base, call_src, "TODO implement comptime function calls", .{});
}
if (modifier != .auto) {
return sema.mod.fail(&block.base, call_src, "TODO implement call with modifier {}", .{modifier});
switch (modifier) {
.auto,
.always_inline,
.compile_time,
=> {},
.async_kw,
.never_tail,
.never_inline,
.no_async,
.always_tail,
=> return sema.mod.fail(&block.base, call_src, "TODO implement call with modifier {}", .{
modifier,
}),
}
// TODO handle function calls of generic functions