Files
kotlin-fork/idea/testData/quickfix/autoImports/unaryPlusOperator.before.Main.kt
T

14 lines
355 B
Kotlin
Vendored

// "Import" "true"
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> operator <b>fun</b> h.A.unaryPlus(): kotlin.Int <i>defined in</i> h</li></ul></html>
package h
interface H
fun f(h: H?) {
<caret>+h
}
class A()
operator fun A.unaryPlus(): Int = 3