Files
kotlin-fork/idea/testData/internal/toolWindow/componentInlineFun/inlineFun.kt
T
Mikhail Zarechenskiy 78affdd2b4 Fix old testdata: add missing operator modifier
This testdata was written when there was no "operator" modifier.

 After a83225218f rules for operators become stricter and now functions without operators are not considered as such
2019-09-25 01:52:55 +03:00

8 lines
169 B
Kotlin
Vendored

package inlineFun1
class A {
inline operator fun component1() = foo { 1 }
inline operator fun component2() = foo { 2 }
inline fun foo(f: () -> Int) = f()
}