Files
kotlin-fork/compiler/testData/diagnostics/tests/incompleteCode/plusOnTheRight.kt
T
Ilya Chernikov 6356807997 Reapply "Only create descriptors for candidates with lambda args"
#KT-36247 fixed
A lot of testdata changed because significanly less (error) descriptors
are created for unresolved types, so diagnostics became different.
2020-02-14 11:41:30 +01:00

12 lines
196 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
//EA-35646
package a
class MyClass1 {
public operator fun unaryPlus() {}
}
fun main(arg: MyClass1) {
arg<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>+<!><!SYNTAX!><!>
}