Erasure: produce raw types, not unbound types

This affects the trap labels for methods, and therefore consistency with the Java extractor.

TODO: check whether we can unify `erase` and `toRawType` entirely.
This commit is contained in:
Chris Smowton
2022-03-24 12:10:16 +00:00
committed by Ian Lynagh
parent 97d44d9583
commit db9ab22437
3 changed files with 6 additions and 3 deletions

View File

@@ -320,7 +320,7 @@ open class KotlinFileExtractor(
}
}
// `typeArgs` can be null to describe a raw generic type.
// `argsIncludingOuterClasses` can be null to describe a raw generic type.
// For non-generic types it will be zero-length list.
fun extractMemberPrototypes(c: IrClass, argsIncludingOuterClasses: List<IrTypeArgument>?, id: Label<out DbClassorinterface>) {
with("member prototypes", c) {