Skip to content

Commit e9f4cdf

Browse files
committed
[JExtract] Missing
1 parent 820632d commit e9f4cdf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaTranslation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ extension JNISwift2JavaGenerator {
251251
case .tuple([]):
252252
return TranslatedResult(javaType: .void, conversion: .placeholder)
253253

254-
case .metatype, .optional, .tuple, .function, .existential, .opaque:
254+
case .metatype, .optional, .tuple, .function, .existential, .opaque, .genericParameter:
255255
throw JavaTranslationError.unsupportedSwiftType(swiftResult.type)
256256
}
257257
}

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+NativeTranslation.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ extension JNISwift2JavaGenerator {
129129
)
130130
)
131131

132-
case .metatype, .optional, .tuple, .existential, .opaque:
132+
case .metatype, .optional, .tuple, .existential, .opaque, .genericParameter:
133133
throw JavaTranslationError.unsupportedSwiftType(swiftParameter.type)
134134
}
135135
}
@@ -160,7 +160,7 @@ extension JNISwift2JavaGenerator {
160160
conversion: .placeholder
161161
)
162162

163-
case .function, .metatype, .optional, .tuple, .existential, .opaque:
163+
case .function, .metatype, .optional, .tuple, .existential, .opaque, .genericParameter:
164164
throw JavaTranslationError.unsupportedSwiftType(type)
165165
}
166166
}
@@ -187,7 +187,7 @@ extension JNISwift2JavaGenerator {
187187
// Custom types are not supported yet.
188188
throw JavaTranslationError.unsupportedSwiftType(type)
189189

190-
case .function, .metatype, .optional, .tuple, .existential, .opaque:
190+
case .function, .metatype, .optional, .tuple, .existential, .opaque, .genericParameter:
191191
throw JavaTranslationError.unsupportedSwiftType(type)
192192
}
193193
}
@@ -223,7 +223,7 @@ extension JNISwift2JavaGenerator {
223223
conversion: .placeholder
224224
)
225225

226-
case .metatype, .optional, .tuple, .function, .existential, .opaque:
226+
case .metatype, .optional, .tuple, .function, .existential, .opaque, .genericParameter:
227227
throw JavaTranslationError.unsupportedSwiftType(swiftResult.type)
228228
}
229229

0 commit comments

Comments
 (0)