Use more specific status to report diagnostics
#KT-12737 Fixed
This commit is contained in:
+21
-1
@@ -1,5 +1,5 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "false"
|
||||
// "Import" "true"
|
||||
// ERROR: Too many arguments for public final fun foo(): Unit defined in main.X
|
||||
// ACTION: Add parameter to function 'foo'
|
||||
// ACTION: Create extension function 'X.foo'
|
||||
@@ -23,3 +23,23 @@ import main.X
|
||||
|
||||
fun X.foo(p: String) {
|
||||
}
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Too many arguments for public final fun foo(): Unit defined in main.X
|
||||
// ACTION: Add parameter to function 'foo'
|
||||
// ACTION: Create extension function 'X.foo'
|
||||
// ACTION: Create member function 'X.foo'
|
||||
|
||||
package main
|
||||
|
||||
import other.foo
|
||||
|
||||
class X {
|
||||
fun foo() {
|
||||
}
|
||||
|
||||
fun f() {
|
||||
this.foo(<caret>1)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user