// !DIAGNOSTICS: -UNUSED_PARAMETER inline fun foo(y: Any?) { if (y is T?) { if (y != null) { bar(y) } } } fun bar(x: CharSequence) {}