11 lines
380 B
Kotlin
Vendored
11 lines
380 B
Kotlin
Vendored
open class Base
|
|
open class DoesNotImplementBase
|
|
|
|
fun <T, V> exampleGenericFunction(func: V) where T: Base, V: (T) -> Unit {
|
|
|
|
}
|
|
|
|
fun main() {
|
|
val func: (DoesNotImplementBase) -> Unit = { }
|
|
<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING!>exampleGenericFunction<!>(func) // expected this to be a compilation error as the T: Base constraint should not be satisfied
|
|
} |