Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Calling consteval through a pointer causes linking error

Open disarray2077 opened this issue 1 year ago • 0 comments

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

disarray2077 avatar May 13 '24 18:05 disarray2077