Improve message clarity for WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostics
#KT-9887 Fixed
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.kotlin.idea.quickfix.AddStarProjectionsFix" "false"
|
||||
// ERROR: 2 type arguments expected
|
||||
// ERROR: 2 type arguments expected for interface Map<K, out V> defined in kotlin.collections
|
||||
public fun foo(a: Any) {
|
||||
a is <caret>Map<Int>
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.kotlin.idea.quickfix.AddStarProjectionsFix" "false"
|
||||
// ERROR: 2 type arguments expected
|
||||
// ERROR: 2 type arguments expected for Map
|
||||
public fun foo(a: Any) {
|
||||
a is Map<Int>
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.kotlin.idea.quickfix.AddStarProjectionsFix" "false"
|
||||
// ERROR: 2 type arguments expected
|
||||
// ERROR: 2 type arguments expected for interface Map<K, out V> defined in kotlin.collections
|
||||
public fun foo(a: Any) {
|
||||
when (a) {
|
||||
is <caret>Map<Int> -> {}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.kotlin.idea.quickfix.AddStarProjectionsFix" "false"
|
||||
// ERROR: 2 type arguments expected
|
||||
// ERROR: 2 type arguments expected for Map
|
||||
public fun foo(a: Any) {
|
||||
when (a) {
|
||||
is Map<Int> -> {}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create secondary constructor" "false"
|
||||
// ACTION: Add parameter to constructor 'A'
|
||||
// ACTION: Create function 'A'
|
||||
// ERROR: No type arguments expected
|
||||
// ERROR: No type arguments expected for constructor A() defined in A
|
||||
// ERROR: Too many arguments for public constructor A() defined in A
|
||||
|
||||
class A
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Make 'IterablePipeline' abstract" "true"
|
||||
// ERROR: 'pipe' overrides nothing
|
||||
// ERROR: Type argument expected
|
||||
// ERROR: One type argument expected for interface Pipeline<TPipeline> defined in root package
|
||||
|
||||
// Actually this test is about getting rid of assertion happenning while creating quick fixes
|
||||
// See KT-10409
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Make 'IterablePipeline' abstract" "true"
|
||||
// ERROR: 'pipe' overrides nothing
|
||||
// ERROR: Type argument expected
|
||||
// ERROR: One type argument expected for interface Pipeline<TPipeline> defined in root package
|
||||
|
||||
// Actually this test is about getting rid of assertion happenning while creating quick fixes
|
||||
// See KT-10409
|
||||
|
||||
Reference in New Issue
Block a user