Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling consteval through a pointer causes linking error #1973

Open
disarray2077 opened this issue May 13, 2024 · 0 comments
Open

Calling consteval through a pointer causes linking error #1973

disarray2077 opened this issue May 13, 2024 · 0 comments

Comments

@disarray2077
Copy link
Contributor

disarray2077 commented May 13, 2024

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: aa4f9f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant