Files
kotlin-fork/idea/testData/inspectionsLocal/redundantSamConstructor/conversionPerArgumentDisabled3.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

9 lines
309 B
Kotlin
Vendored

// COMPILER_ARGUMENTS: -XXLanguage:+NewInference -XXLanguage:+SamConversionForKotlinFunctions -XXLanguage:+FunctionalInterfaceConversion -XXLanguage:-SamConversionPerArgument
// PROBLEM: none
fun test(r1: Runnable, r2: Runnable) {}
fun usage() {
test(Runnable { return@Runnable }, Runnable<caret> {})
}