@@ -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