gdscript can't compile Type inspection
Some checks failed
/ test (push) Failing after 46s

This commit is contained in:
2025-10-30 15:13:09 -05:00
parent 90132745b3
commit 5cdd5e3be0

View File

@@ -650,6 +650,8 @@ class Story {
if (value == null) {
throw 'Trying to format null for insertion!';
}
#if !gdscript
// Static extension syntax wasn't working here, probably because of type parameters
var c = Type.getClass(value);
var e = Type.getEnum(value);
@@ -665,6 +667,7 @@ class Story {
if (typeName != null && insertionHooks.exists(typeName)) {
return insertionHooks[typeName](value);
}
#end
// If no special hook is defined for the value to insert,
return Std.string(value);