migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.06k stars 65 forks source link

Omitting `@SceneTree.path` breaks compilation #401

Closed tishin closed 6 months ago

tishin commented 6 months ago

For some reason example from #297 does not compile anymore:

@Godot
class MyNode: Node2D {
    @SceneTree var char2D: CharacterBody2D? // Type of expression is ambiguous without a type annotation
}

Looks like a regression.