import test.Sub as MySub import test.SubKt typealias Sub = MySub class Test @Suppress("UNUSED_PARAMETER") fun useCallRef(ref: Any?) {} @Suppress("UNUSED_PARAMETER") fun simpleFun(arg: Sub): Sub = Sub() inline fun inlineFun(t: T) = t // In conservative mode without -Xextended-compiler-checks flag these usages don't cause compilation error fun test() { @Suppress("UNUSED_VARIABLE") val x: Sub = Sub() Test() useCallRef(::Sub) simpleFun(Sub()) inlineFun(Sub()) SubKt.companionMethod() SubKt.InnerObject.objectMethod() }