FIR: Do not fail when trying to apply attributes to stub types
This commit is contained in:
committed by
teamcityserver
parent
0a3c950e7f
commit
3eb3015688
@@ -116,6 +116,8 @@ fun <T : ConeKotlinType> T.withAttributes(attributes: ConeAttributes, typeSystem
|
|||||||
// TODO: Consider correct application of attributes to ConeIntersectionType
|
// TODO: Consider correct application of attributes to ConeIntersectionType
|
||||||
// Currently, ConeAttributes.union works a bit strange, because it lefts only `other` parts
|
// Currently, ConeAttributes.union works a bit strange, because it lefts only `other` parts
|
||||||
is ConeIntersectionType -> this
|
is ConeIntersectionType -> this
|
||||||
|
// Attributes for stub types are not supported, and it's not obvious if it should
|
||||||
|
is ConeStubType -> this
|
||||||
else -> error("Not supported: $this: ${this.render()}")
|
else -> error("Not supported: $this: ${this.render()}")
|
||||||
} as T
|
} as T
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user