https://kotlinlang.org logo
#eap
Title
d

dmitry.petrov

12/23/2016, 12:38 PM
Unfortunately, that's not always possible without additional refactorings. E.g.,
Copy code
foo(bar(if (flag) Derived1() else Derived2())) // should extract variable here