[FE 1.0] Refactoring: replace defensive NonPrivateCallableAdded with Unknown

Motivation: I'm going to drop NonPrivateCallableAdded (KT-62655) in the
next commits. But I don't want to change the existing logic when I drop
it. That's why I have to introduce the "Unknown" case
This commit is contained in:
Nikita Bobko
2023-10-19 16:04:27 +02:00
committed by Space Team
parent 12f932a63a
commit a537ab898e
5 changed files with 18 additions and 3 deletions
@@ -53,6 +53,10 @@ data class K1ExpectActualMemberDiff<out M, out C>(val kind: Kind, val actualMemb
"{0}: the type parameter names of this member must be the same in the expect class and the actual class. " +
"This error happens because the expect class ''{1}'' is non-final"
),
Unknown(
"{0}: normally, this error should never happen. Please report to https://kotl.in/issue. " +
"This error happens because the expect class ''{1}'' is non-final"
)
}
}