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:
Alexander Udalov
2014-04-17 19:01:29 +04:00
parent 72dfca1698
commit a5cc894ecd
5 changed files with 23 additions and 1 deletions
@@ -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