blob: 329ffb1d01347cfc88583420bd2f4053b7e539bf [file]
// FIR_IDENTICAL
// See KT-9244
sealed class Foo {
class Bar : Foo()
class Baz : Foo()
}
// The following warning seems incorrect here
// "Foo is a final type, and thus a value of the type parameter is predetermined"
fun <T : Foo> doit(arg: T): T = arg