Swap arguments for diagnostic message about incompatible enums
This commit is restoring previous behavior changed in c4b69b65 and
fixing `DiagnosticMessageTestGenerated.testIncompatibleEnums` test
This commit is contained in:
+1
-1
@@ -684,7 +684,7 @@ class PatternMatchingTypingVisitor internal constructor(facade: ExpressionTyping
|
||||
return
|
||||
}
|
||||
|
||||
checkEnumsForCompatibility(context, reportErrorOn, type, subjectType)
|
||||
checkEnumsForCompatibility(context, reportErrorOn, subjectType, type)
|
||||
|
||||
// check if the pattern is essentially a 'null' expression
|
||||
if (KotlinBuiltIns.isNullableNothing(type) && !TypeUtils.isNullableType(subjectType)) {
|
||||
|
||||
Reference in New Issue
Block a user