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

No overload found for function #1970

Closed
disarray2077 opened this issue May 13, 2024 · 0 comments · Fixed by #1977
Closed

No overload found for function #1970

disarray2077 opened this issue May 13, 2024 · 0 comments · Fixed by #1977

Comments

@disarray2077
Copy link
Contributor

disarray2077 commented May 13, 2024

The compiler is unable to find the correct overload in the case below, even though the signature is explicitly given. Additionally, the function signature in the error message is incorrect as it does not include params.

class Program
{
	public void Test(String str, String str2)
	{

	}

	public void Test(String str, params String[] strs)
	{

	}

	public static void Main()
	{
		function void(Program this, String, params String[]) ptr = => Test; // ERROR: No overload for 'Test' matches function 'function void(simple_test.Program this, System.String, System.String[])'
	}
}

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

Successfully merging a pull request may close this issue.

1 participant