Files
kotlin-fork/idea/testData/quickfix/autoImports/unaryPlusOperator.before.Main.kt
T
2014-01-16 22:11:55 +04:00

14 lines
423 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> h.A.plus(): jet.Int <i>defined in</i> h</li><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
package h
trait H
fun f(h: H?) {
<caret>+h
}
class A()
fun A.plus(): Int = 3