Omar Mainegra
10/29/2020, 2:31 PMIdea
could respect the compiler flag -XXLanguage:-NewInference
, right now it doesn't seem to be the case (Idea/AS hang with the new FE). The reason I'm bringing this up because https://youtrack.jetbrains.com/issue/KT-41644 was reopen, we are still stuck in 1.3.71 even when our code works 1.4.x (cmd gradle), but without an IDE we can't migrateAlexey Belkov [JB]
11/06/2020, 9:31 AM-XXLanguage:-NewInference
from Gradle after project reimport (it should be applied to all Gradle projects of course). You can verify this for example on code from https://youtrack.jetbrains.com/issue/KT-38804: with the flag applied it will be highlighted in red in IDEA.
And yes, sorry, there are still some performance regressions in new inference in obscure cases with a lot of generics, but as has been pointed out, it generally helps to specify types explicitly, so they don't have to be inferred.