compiler: disallow callconv etc from depending on function parameters
Resolves: #22261
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
fn foo(...) void {}
|
||||
fn bar(a: anytype, ...) callconv(a) void {}
|
||||
inline fn foo2(...) void {}
|
||||
|
||||
comptime {
|
||||
_ = foo;
|
||||
}
|
||||
comptime {
|
||||
_ = bar;
|
||||
}
|
||||
comptime {
|
||||
_ = foo2;
|
||||
}
|
||||
@@ -19,4 +15,3 @@ comptime {
|
||||
// :1:1: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'
|
||||
// :1:1: error: variadic function does not support 'inline' calling convention
|
||||
// :1:1: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'
|
||||
// :2:1: error: generic function cannot be variadic
|
||||
|
||||
Reference in New Issue
Block a user