How can I configure the Kotlin version used for scratch files in IntelliJ IDEA?
I've recently installed IntelliJ IDEA in an attempt to learn Kotlin. I've set up a Kotlin project and configured IDEA to use the latest stable release of the Kotlin plugin (1.2.71-release-IJ2018.2-1).
The following code works fine if executed in a project file (e.g. src/main.kt):
sealed class Port
class InputPort : Port()
class OutputPort : Port()
However, if I try to execute this in a scratch file instead, I get these errors:
scratch.kts
225: error: cannot access '': it is private in...