Files
kotlin-fork/idea/testData/inspectionsLocal/redundantSamConstructor/resolutionAmbiguity2.kt
T
Roman Golyshev 3122760c49 Add more tests for RedundantSamConstructorInspection
- All those tests already pass, they are needed to fix the behaviour of the inspection before the changes
2020-02-19 17:16:17 +03:00

7 lines
169 B
Kotlin
Vendored

// PROBLEM: none
fun JavaTest.usage() {
fun foo(a: () -> Unit) {}
foo(JavaTest.FunInterface1<caret> { 10 }) // local foo will be used without SAM constructor
}