Improve message clarity for WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostics

#KT-9887 Fixed
This commit is contained in:
Pavel V. Talanov
2016-03-10 14:17:28 +03:00
parent d6cd46e079
commit 7de171efda
23 changed files with 75 additions and 40 deletions
+7
View File
@@ -0,0 +1,7 @@
package foo
open class A<T>
fun <T> f(<warning>t</warning>: T<error descr="[TYPE_ARGUMENTS_NOT_ALLOWED] Type arguments are not allowed for type parameters"><T></error>) {}
fun <T> use(<warning>b</warning>: foo<error descr="[TYPE_ARGUMENTS_NOT_ALLOWED] Type arguments are not allowed here"><T></error>.A<T>) {}
+5
View File
@@ -0,0 +1,5 @@
open class A<T>()
class G<T>()
class B : A<<error descr="[WRONG_NUMBER_OF_TYPE_ARGUMENTS] One type argument expected for class G<T> defined in root package">G</error>>()