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

Highlighting fails after arrow function with types #46

Open
Aurel300 opened this issue Jul 11, 2019 · 0 comments
Open

Highlighting fails after arrow function with types #46

Aurel300 opened this issue Jul 11, 2019 · 0 comments
Labels

Comments

@Aurel300
Copy link

I don't think this is the case mentioned in #29 (comment)

With the type hint in the return, the highlighting stops for the following functions:

Screen Shot 2019-07-11 at 17 03 55

If I remove the type hint:

Screen Shot 2019-07-11 at 17 04 08

And a text version for copypasting (which also shows the problem):

abstract Callback<T>(CallbackData<T>) from CallbackData<T> {
	@:from static inline function fromOptionalErrorOnly(f:(?error:Error) -> Void):Callback<NoData> return (?err:Error, ?result:NoData) -> f(err);

	@:from static inline function fromErrorOnly(f:(error:Error) -> Void):Callback<NoData> return (?err:Error, ?result:NoData) -> f(err);
}
@Gama11 Gama11 added the bug label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants