Beef
Beef copied to clipboard
Calling consteval through a pointer causes linking error
The compiler allows you to get the function pointer of a consteval method, but attempting to call it results in a linking error.
class Program
{
[Comptime(ConstEval=true)]
public static void Test()
{
}
public static void Main()
{
function void() func = => Test;
func();
}
}
Tested with: https://github.com/beefytech/Beef/commit/aa4f9f7dfa8f2ad81a6807b87192516d0ce72a1a