Skip to content

Commit e40c8ff

Browse files
committed
Make resolution status name more precise
1 parent 7a9e1b2 commit e40c8ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CandidateResolver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ class CandidateResolver(
568568
}
569569
if (!smartCastResult.isCorrect) {
570570
// Error about unstable smart cast reported within checkAndRecordPossibleCast
571-
return UNSTABLE_SMARTCAST_ERROR
571+
return UNSTABLE_SMARTCAST_FOR_RECEIVER_ERROR
572572
}
573573
}
574574
}

compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/results/ResolutionStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public enum ResolutionStatus {
2424
UNKNOWN_STATUS,
2525
UNSAFE_CALL_ERROR,
2626
WRONG_NUMBER_OF_TYPE_ARGUMENTS_ERROR,
27-
UNSTABLE_SMARTCAST_ERROR,
27+
UNSTABLE_SMARTCAST_FOR_RECEIVER_ERROR,
2828
INVISIBLE_MEMBER_ERROR,
2929
NULLABLE_ARGUMENT_TYPE_MISMATCH,
3030
OTHER_ERROR,
@@ -43,7 +43,7 @@ public enum ResolutionStatus {
4343
public static final EnumSet<ResolutionStatus>[] SEVERITY_LEVELS = new EnumSet[] {
4444
EnumSet.of(UNSAFE_CALL_ERROR), // weakest
4545
EnumSet.of(WRONG_NUMBER_OF_TYPE_ARGUMENTS_ERROR),
46-
EnumSet.of(UNSTABLE_SMARTCAST_ERROR),
46+
EnumSet.of(UNSTABLE_SMARTCAST_FOR_RECEIVER_ERROR),
4747
EnumSet.of(INVISIBLE_MEMBER_ERROR),
4848
EnumSet.of(NULLABLE_ARGUMENT_TYPE_MISMATCH),
4949
EnumSet.of(OTHER_ERROR),

0 commit comments

Comments
 (0)