class For { var xxx: For? = null } fun foo(f: For) { f.xxx if (true) { val xxx = 1 } }