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

13 lines
347 B
Kotlin
Vendored

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