-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Inline lambda parsed incorrectly #204
Comments
In my case it throws an exception. Could it give a warning instead? This had the great advantage to not block the other parts (and scripts) from being formatted. Example (where the last line is the culprit): extends Node2D
var bubble_scene = preload("res://environment/bubble.tscn")
func _ready() -> void:
spawn_bubble()
func spawn_bubble() -> void:
var bubble = bubble_scene.instantiate() as Bubble
add_child(bubble)
bubble.tree_exited.connect(func(): if bubble.is_queued_for_deletion(): spawn_bubble()) EDIT: I didn't see the workaround in #191 (comment). |
Last time I've checked, Godot had no support for inline |
Please note that you can use multiline lambda on latest master. |
The text was updated successfully, but these errors were encountered: