JS: remove unconditional as SimpleType cast
This is a workround for a bug introduced in the typeOf support
This commit is contained in:
@@ -129,7 +129,9 @@ fun <T, S> List<T>.splitToRanges(classifier: (T) -> S): List<Pair<List<T>, S>> {
|
||||
|
||||
fun getReferenceToJsClass(type: KotlinType, context: TranslationContext): JsExpression =
|
||||
getReferenceToJsClass(type.constructor.declarationDescriptor, context).also {
|
||||
it.kType = KTypeConstructor(context).createKType(type as SimpleType)
|
||||
if (type is SimpleType) {
|
||||
it.kType = KTypeConstructor(context).createKType(type)
|
||||
}
|
||||
}
|
||||
|
||||
fun getReferenceToJsClass(classifierDescriptor: ClassifierDescriptor?, context: TranslationContext): JsExpression {
|
||||
|
||||
Reference in New Issue
Block a user