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