diff --git a/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt b/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt index 9cf7281de..a611eec62 100644 --- a/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt +++ b/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt @@ -1275,7 +1275,9 @@ class ClassBuilderDsl( } internal fun build(): KtClass { - check(constructors.isNotEmpty()) { "Please provide at least one constructor." } + if (!isAbstract) { + check(constructors.isNotEmpty()) { "Please provide at least one constructor." } + } // Constraints.MAX_CONSTRUCTOR_ARG_COUNT + 1 because we have no arg constructor. val constructorArray = arrayOfNulls>(Constraints.MAX_CONSTRUCTOR_ARG_COUNT + 1) constructors.forEach {