@@ -221,33 +221,35 @@ trait BCodeHelpers extends BCodeIdiomatic {
221221 val av = cw.visitAnnotation(typeDescriptor(typ), isRuntimeVisible(annot))
222222 emitAssocs(av, assocs, BCodeHelpers .this )(this )
223223 }
224-
225- def toJTypeB (tpe : dotty.tools.dotc.transform.TypeB ): TypeHints .TypeB =
224+
225+ def toJTypeB (tpe : dotty.tools.dotc.transform.TypeB ): TypeHints .TypeB =
226226 tpe match
227227 case dotty.tools.dotc.transform.TypeB .None => TypeHints .TypeB .NO_HINT
228228 case dotty.tools.dotc.transform.TypeB .M (index) => new TypeHints .TypeB (TypeHints .TypeB .M_KIND , index)
229+ case dotty.tools.dotc.transform.TypeB .K (index) => ???
229230 // case _ =>
230231 // report.error("unexpected type in to Java TypeB: " + tpe)
231232 // TypeHints.TypeB.NO_HINT // fallback, should not happen
232233
233- def addMethodTypeParameterCountAttribute (mw : asm.MethodVisitor , count : Int ): Unit =
234+ def addMethodTypeParameterCountAttribute (mw : asm.MethodVisitor , count : Int ): Unit =
234235 if (count > 0 ){
235236 val attr = new MethodTypeParameterCount (count)
236237 mw.visitAttribute(attr)
237238 }
238239
239240 def addMethodReturnTypeAttribute (mw : asm.MethodVisitor , tpe : dotty.tools.dotc.transform.TypeB ): Unit =
240- tpe match
241- case dotty.tools.dotc.transform.TypeB .M (index) =>
241+ tpe match
242+ case dotty.tools.dotc.transform.TypeB .M (index) =>
242243 val typeB = new TypeHints .TypeB (TypeHints .TypeB .M_KIND , index)
243244 val attr = new MethodReturnType (typeB)
244245 mw.visitAttribute(attr)
245246 case dotty.tools.dotc.transform.TypeB .None => // do nothing
247+ case dotty.tools.dotc.transform.TypeB .K (index) => ???
246248 // case _ =>
247249 // report.error("Unexpected type for method return type attribute: " + tpe)
248-
249250
250- def addMethodParameterTypeAttribute (mw : asm.MethodVisitor , lst : List [dotty.tools.dotc.transform.TypeB ]) : Unit =
251+
252+ def addMethodParameterTypeAttribute (mw : asm.MethodVisitor , lst : List [dotty.tools.dotc.transform.TypeB ]) : Unit =
251253 if (lst.isEmpty) return
252254 val lstJTypeB = lst.map(toJTypeB)
253255 val len = lstJTypeB.length
0 commit comments