FIR: Fix synthetic type variables to independent stub types

This commit is contained in:
Simon Ogorodnik
2021-11-26 16:51:42 +03:00
committed by teamcity
parent 580410863f
commit df9da371cb
4 changed files with 34 additions and 15 deletions
@@ -435,6 +435,7 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
override fun TypeConstructorMarker.unwrapStubTypeVariableConstructor(): TypeConstructorMarker {
if (this !is ConeStubTypeConstructor) return this
if (this.isTypeVariableInSubtyping) return this
if (this.isForFixation) return this
return this.variable.typeConstructor
}