Simplify diagnostic when there are wrong number of type arguments

#KT-12767 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-07-10 18:43:02 +03:00
parent e82c909f75
commit ee173077c0
15 changed files with 36 additions and 16 deletions
@@ -1,7 +1,7 @@
// "Create secondary constructor" "false"
// ACTION: Add parameter to constructor 'A'
// ACTION: Create function 'A'
// ERROR: No type arguments expected for constructor A() defined in A
// ERROR: No type arguments expected for constructor A()
// ERROR: Too many arguments for public constructor A() defined in A
class A
@@ -1,4 +1,4 @@
// "Create type parameter in class 'X'" "false"
// ERROR: 2 type arguments expected for class X<T, U> defined in root package in file missingArguments.kt
// ERROR: 2 type arguments expected for class X<T, U>
class X<T, U>
fun Y(x: X<<caret>String>) {}
@@ -1,5 +1,5 @@
// "Create type parameter in class 'X'" "false"
// ERROR: No type arguments expected for class X defined in root package in file notOnTypeArgumentList.kt
// ERROR: No type arguments expected for class X
class X