We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! I've noticed an issue with lambda's with statically typed return type:
Creating an untyped lambda like this works:
new_button.pressed.connect( func(): var test := "" _game_flow.ref.request_transition(menu[button_name].transition, menu[button_name].data) )
Creating a typed lambda without a variable declaration works:
new_button.pressed.connect( func() -> void: _game_flow.ref.request_transition(menu[button_name].transition, menu[button_name].data) )
But creating a typed lambda containing a variable declaration does not:
new_button.pressed.connect( func() -> void: var test := "" _game_flow.ref.request_transition(menu[button_name].transition, menu[button_name].data) )
Failure is:
_game_flow.ref.request_transition( ^ Unexpected token Token('TYPE_HINT', '_game_flow.ref.request_transition') at line 52, column 6. Expected one of: * IN * "-=" * ">>=" * IS * ">=" * VBAR * MORETHAN * "/=" * LESSTHAN * "*=" * "**=" * AND * COMMA * PERCENT * "%=" * "&&" * EQUAL * AS * "&=" * "||" * PLUS * RPAR * "+=" * AMPERSAND * "!=" * SEMICOLON * "==" * ">>" * NOT * "<=" * OR * "<<=" * SLASH * IF * CIRCUMFLEX * STAR * "<<" * "**" * "|=" * "is not" * "^=" * DOT * MINUS * LSQB Previous tokens: [Token('_NL', '\n\t\t\t\t\t')]
The text was updated successfully, but these errors were encountered:
4b628ed
Hi, thank you for reporting.
I've confirmed this is a bug within lexer that produces such a strange error on the high level.
I've quick-fixed the issue on master. I'll prepare more generic fix soon, but you should be already able to proceed.
master
Sorry, something went wrong.
That was fast! Thank you!
Make custom lexer more generic, #327
e204a49
No branches or pull requests
Hi! I've noticed an issue with lambda's with statically typed return type:
Creating an untyped lambda like this works:
Creating a typed lambda without a variable declaration works:
But creating a typed lambda containing a variable declaration does not:
Failure is:
The text was updated successfully, but these errors were encountered: