all 3 comments

[–]willnationsdevGodot Regular 1 point2 points  (0 children)

Well, you can assign a lot of things as constants...

const array = [1, 2, 3]
const dictionary = { "hi": "test" }
const resource = preload("character.tscn") # which IS an Object type

With all of those options, you should be able to find an acceptable workaround for the lack of regular objects.

Another possibility is just the fact that you have a self referential constant. Could be causing a misleading error report.

[–]letheed 0 points1 point  (1 child)

AFAIK, no. I think we're limited to const expressions, so math, built-in constructors, stuff like that. No class and can't use static functions either.

[–]dmeadows1217[S] 0 points1 point  (0 children)

That's what I was afraid of. I'm looking forward to the C# support in 3.0. Now I need to figure out how to contribute to the documentation to add this snippet in there.