Files
kotlin-fork/analysis/analysis-api/testData/referenceResolve/PlusAssignByHand.kt
T
Roman Golyshev 304112cd8a [tests] Refactor AbstractReferenceResolveTest. Part 1
Instead of relying on UNRESOLVED_REFERENCE directive for the whole file,
just render the unresolved reference right in the .txt testdata

This will allow to introduce multi-caret resolve testdata more naturally

Required for KT-65152 and KT-62695
2024-01-26 10:12:09 +00:00

13 lines
221 B
Kotlin
Vendored

package test
interface Foo
interface WithOperator {
operator fun plus(f: Foo): WithOperator
}
fun test(withOperator: WithOperator, foo: Foo) {
var variable = withOperator
variable <caret>= variable + foo
}