Use more specific status to report diagnostics

#KT-12737 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-07-10 10:58:36 +03:00
parent 178bb900b4
commit e82c909f75
11 changed files with 69 additions and 14 deletions
@@ -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)
}
}