Fix "name in constraint is not a type parameter" diagnostic message
TO_STRING renderer was used for PSI elements, so things like "CLASS", "FUN" were displayed in the message
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// !DIAGNOSTICS_NUMBER: 1
|
||||
// !DIAGNOSTICS: NAME_IN_CONSTRAINT_IS_NOT_A_TYPE_PARAMETER
|
||||
|
||||
object O
|
||||
|
||||
fun <T> foo() where O : O { }
|
||||
@@ -0,0 +1,2 @@
|
||||
<!-- nameInConstraintIsNotATypeParameter1 -->
|
||||
O does not refer to a type parameter of foo
|
||||
Reference in New Issue
Block a user