Files
kotlin-fork/idea/testData/quickfix/autoImports/minusOperator.before.Main.kt
T
Pavel V. Talanov e693820fb4 Auto-imports for operator calls and infix calls
#KT-1613 Fixed
 #KT-4192 Fixed

Enable auto-import fix for "unresolved reference with wrong receiver" diagnostic
2013-12-31 13:24:38 +04:00

13 lines
512 B
Kotlin

// "Import" "true"
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> jet.String.minus(str: jet.String): jet.String <i>defined in</i> root package</li><li><b>internal</b> <b>fun</b> jet.String.minus(i: java.lang.Integer): jet.String <i>defined in</i> root package</li></ul></html>
trait H
fun f(h: H?) {
h <caret>- "other"
}
fun String.minus(str: String) = ""
fun String.minus(i: Integer) = ""