2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
15 lines
307 B
Kotlin
Vendored
15 lines
307 B
Kotlin
Vendored
// !CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION: CONSTRAINT_SYSTEM_FOR_OLD_INFERENCE
|
|
|
|
open class A<T>(val value: T)
|
|
class B<T>(value: T) : A<T>(value)
|
|
|
|
fun <T> A<T>.foo(block: (T?) -> Unit) {
|
|
block(value)
|
|
}
|
|
fun <T> B<T>.foo(block: (T) -> Unit) {
|
|
block(value)
|
|
}
|
|
|
|
fun main() {
|
|
B("string").foo { }
|
|
} |