Fix common super type calculation for captured dynamic types
^KT-32499 Fixed
This commit is contained in:
+5
-1
@@ -41,7 +41,11 @@ object NewCommonSuperTypeCalculator {
|
||||
|
||||
val lowers = types.map {
|
||||
when (it) {
|
||||
is SimpleTypeMarker -> it
|
||||
is SimpleTypeMarker -> {
|
||||
if (it.isCapturedDynamic()) return it
|
||||
|
||||
it
|
||||
}
|
||||
is FlexibleTypeMarker -> {
|
||||
if (it.isDynamic()) return it
|
||||
// raw types are allowed here and will be transformed to FlexibleTypes
|
||||
|
||||
Reference in New Issue
Block a user