Do not check argumentMapping.isError()

Argument matching status can be considered an "error" in resolve,
even though it is not a compilation error and doesn't prevent code
from being generated.
Actually, we should only check if the argument matching status is
ArgumentMatch.

 #KT-18294 Fixed
This commit is contained in:
Dmitry Petrov
2017-06-05 16:43:26 +03:00
parent e2aa3518df
commit fd1866b838
4 changed files with 36 additions and 4 deletions
@@ -0,0 +1,9 @@
fun <R : Number> Number.convert(): R = TODO()
fun foo(arg: Number) {
}
fun main(args: Array<String>) {
val x: Int = 0
foo(x.convert())
}