Files
kotlin-fork/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt
T
Dmitry Petrov fd1866b838 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
2017-06-06 10:19:18 +03:00

9 lines
146 B
Kotlin
Vendored

fun <R : Number> Number.convert(): R = TODO()
fun foo(arg: Number) {
}
fun main(args: Array<String>) {
val x: Int = 0
foo(x.convert())
}