blob: 2df1de559e06738c75d860884d3f00d3c5deb068 [file] [log] [blame]
// !LANGUAGE: +InlineClasses
class C<T>(val t: T) {
override fun hashCode(): Int = t as Int
}
inline class IC<TT>(val c: C<TT>) {
fun foo(): Int = c.hashCode()
}
fun box(): String {
val ic = IC<Int>(C(42))
if (ic.foo() != 42) return "FAIL"
return "OK"
}