mirror of
https://github.com/ziglang/zig.git
synced 2026-01-31 11:43:37 +00:00
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:
parent
2cee19ab21
commit
579694893e
19
src/Sema.zig
19
src/Sema.zig
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user