FIR: introduce isPrimitive / isPrimitiveOrNullablePrimitive helpers

This commit is contained in:
Mikhail Glukhikh
2021-05-07 15:59:24 +03:00
parent 6d82aa0bc9
commit 632a9d66d1
9 changed files with 22 additions and 32 deletions
@@ -369,7 +369,7 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
override fun SimpleTypeMarker.isPrimitiveType(): Boolean {
if (this is ConeClassLikeType) {
return StandardClassIds.primitiveTypes.contains(this.lookupTag.classId)
return isPrimitive
}
return false
}