Skip to content

Issue with @abstract annotation on a function #387

@TranquilMarmot

Description

@TranquilMarmot

See godotengine/godot#106409 and godotengine/godot#107717

The @abstract annotation now exists in Godot 4.5

@abstract class_name MyClass # this works fine
extends Node

@abstract func my_func()
@abstract func my_other_func() # Unexpected token Token('_NL', '\n')(gdlint)

It looks like this is also valid, with \n after the annotation:

@abstract
class_name Saveable
extends Node

@abstract
func save()
# Unexpected token Token('_NL', '\n\n')(gdlint)
@abstract
func load()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions