Skip to content

Commit af8b01c

Browse files
committed
Dev: fix enum empty constructor requirement
1 parent f83af42 commit af8b01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/main/java/com/readdle/codegen/SwiftValueDescriptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class SwiftValueDescriptor {
8787
}
8888
}
8989

90-
if (!hasEmptyConstructor) {
90+
if (!hasEmptyConstructor && classElement.getKind() != ElementKind.ENUM) {
9191
// No empty constructor found
9292
throw new IllegalArgumentException(String.format("The class %s must provide an public empty default constructor",
9393
classElement.getQualifiedName().toString()));

0 commit comments

Comments
 (0)