// RUN_PIPELINE_TILL: BACKEND
fun test(x: Any) {
  if (x !is String) return

  class LocalOuter {
    inner class Local {
      init {
        <!DEBUG_INFO_SMARTCAST!>x<!>.length
      }
    }
  }
}

/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, ifExpression, init, inner, isExpression, localClass,
smartcast */
