File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/frontend/src/org/jetbrains/kotlin/resolve/calls Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ class CandidateResolver(
568
568
}
569
569
if (! smartCastResult.isCorrect) {
570
570
// Error about unstable smart cast reported within checkAndRecordPossibleCast
571
- return UNSTABLE_SMARTCAST_ERROR
571
+ return UNSTABLE_SMARTCAST_FOR_RECEIVER_ERROR
572
572
}
573
573
}
574
574
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public enum ResolutionStatus {
24
24
UNKNOWN_STATUS ,
25
25
UNSAFE_CALL_ERROR ,
26
26
WRONG_NUMBER_OF_TYPE_ARGUMENTS_ERROR ,
27
- UNSTABLE_SMARTCAST_ERROR ,
27
+ UNSTABLE_SMARTCAST_FOR_RECEIVER_ERROR ,
28
28
INVISIBLE_MEMBER_ERROR ,
29
29
NULLABLE_ARGUMENT_TYPE_MISMATCH ,
30
30
OTHER_ERROR ,
@@ -43,7 +43,7 @@ public enum ResolutionStatus {
43
43
public static final EnumSet <ResolutionStatus >[] SEVERITY_LEVELS = new EnumSet [] {
44
44
EnumSet .of (UNSAFE_CALL_ERROR ), // weakest
45
45
EnumSet .of (WRONG_NUMBER_OF_TYPE_ARGUMENTS_ERROR ),
46
- EnumSet .of (UNSTABLE_SMARTCAST_ERROR ),
46
+ EnumSet .of (UNSTABLE_SMARTCAST_FOR_RECEIVER_ERROR ),
47
47
EnumSet .of (INVISIBLE_MEMBER_ERROR ),
48
48
EnumSet .of (NULLABLE_ARGUMENT_TYPE_MISMATCH ),
49
49
EnumSet .of (OTHER_ERROR ),
You can’t perform that action at this time.
0 commit comments