We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d24ebf7 commit 81df764Copy full SHA for 81df764
compiler/frontend/src/org/jetbrains/kotlin/types/CommonSupertypes.java
@@ -89,11 +89,11 @@ private static KotlinType findCommonSupertype(@NotNull Collection<KotlinType> ty
89
for (KotlinType type : types) {
90
UnwrappedType unwrappedType = type.unwrap();
91
if (unwrappedType instanceof FlexibleType) {
92
- if (DynamicTypesKt.isDynamic(type)) {
93
- return type;
+ if (DynamicTypesKt.isDynamic(unwrappedType)) {
+ return unwrappedType;
94
}
95
hasFlexible = true;
96
- FlexibleType flexibleType = (FlexibleType) type;
+ FlexibleType flexibleType = (FlexibleType) unwrappedType;
97
upper.add(flexibleType.getUpperBound());
98
lower.add(flexibleType.getLowerBound());
99
0 commit comments