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

16 lines
434 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
import util.plus
trait H
fun f(h: H?) {
+h
}
class A()
fun A.plus(): Int = 3