// !LANGUAGE: +InlineClasses class C(val t: T) { override fun hashCode(): Int = t as Int } inline class IC(val c: C) { fun foo(): Int = c.hashCode() } fun box(): String { val ic = IC(C(42)) if (ic.foo() != 42) return "FAIL" return "OK" }