diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index 2a7de9c054..646e0e6ba0 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -30,8 +30,9 @@ #include "ustring.h" -STATIC_ASSERT_INCOMPLETE_TYPE(class, Dictionary); STATIC_ASSERT_INCOMPLETE_TYPE(class, Array); +STATIC_ASSERT_INCOMPLETE_TYPE(class, Dictionary); +STATIC_ASSERT_INCOMPLETE_TYPE(class, Object); #include "core/crypto/crypto_core.h" #include "core/math/color.h" diff --git a/core/variant/array.cpp b/core/variant/array.cpp index 4d2fc175fd..56354107c0 100644 --- a/core/variant/array.cpp +++ b/core/variant/array.cpp @@ -31,6 +31,7 @@ #include "array.h" STATIC_ASSERT_INCOMPLETE_TYPE(class, Dictionary); +STATIC_ASSERT_INCOMPLETE_TYPE(class, Object); STATIC_ASSERT_INCOMPLETE_TYPE(class, String); #include "container_type_validate.h" diff --git a/core/variant/dictionary.cpp b/core/variant/dictionary.cpp index 104b9da649..727b6c5137 100644 --- a/core/variant/dictionary.cpp +++ b/core/variant/dictionary.cpp @@ -31,6 +31,8 @@ #include "dictionary.h" STATIC_ASSERT_INCOMPLETE_TYPE(class, Array); +STATIC_ASSERT_INCOMPLETE_TYPE(class, Object); +STATIC_ASSERT_INCOMPLETE_TYPE(class, String); #include "core/templates/hash_map.h" #include "core/templates/safe_refcount.h"