fun doSomething(a: T) {} fun foo() { fun test(): Boolean { return false } val a = true if (test()) { if (a) { doSomething("test") } } }