Files
kotlin-fork/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/errorsInFunctionalInterfacesInstances.kt
T
2023-12-21 19:36:44 +00:00

17 lines
294 B
Kotlin
Vendored

@Suppress("UNUSED_VARIABLE")
fun check() {
val o = CustomSupplier<String> {
3
}
val o2 = object : CustomSupplier<String> {}
val o3 = object : CustomSupplier<String> {
override fun get(): String = 2
}
}
fun interface CustomSupplier<T> {
fun get(): T
}