DEV Community

Discussion on: From Java 8 to Java 15 in Ten Minutes

Collapse
 
pmgysel profile image
Philipp Gysel

Thanks Martin, there's always a bug somewhere! I updated the code snippet as you suggested 😎

Collapse
 
martinhaeusler profile image
Martin Häusler

No problem. I really wish they did it in the way you've described. If you want this kind of inference, you'd have to use Kotlin; there it works this way.

Thread Thread
 
pmgysel profile image
Philipp Gysel

Oh well I‘m jeleous of the Kotlin developers😜 Anyways, happy coding!