what is wront in this code im getting this error Unexpected token: Built-In Func: in the last line need help

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Noob in gdscript

extends Node

func test() → bool:
return true

var result = test()
print(result)

İs this all your code if it is you should put your print statement in a function you cant use it there.

func _ready():
    print(...)

Enfyna | 2023-04-02 22:52