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 completion for constraint return type #11918

Open
RblSb opened this issue Jan 14, 2025 · 0 comments
Open

No completion for constraint return type #11918

RblSb opened this issue Jan 14, 2025 · 0 comments

Comments

@RblSb
Copy link
Member

RblSb commented Jan 14, 2025

function main() {
	final foo = get();
	// foo is mono, no completion for String methods
	foo.length;
}

function get<T:String>():T {
	return cast "";
}

Works with @:generic

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