I got bitten by this where I suggested users compile and run 3 short .kt files. It broke. After much head-scratching, we finally figured out that it was using JDK 1.6 as the default. This is… really out of date, right? 1.6 is well past end of life. 1.7 is EOL June 2020
It would be nice if the default command line
kotlinc was -jvm-target 1.8+, then all the
internal keywords won’t break it.