// !LANGUAGE: +InlineClasses fun foo(a: IC): T = a.value as T inline class IC(val value: String) fun box(): String { return foo(IC("O")) + "K" }