I wanted to use kotlin.time.measureTime
in a Kotlin scratch file but it doesn't work.
...
kotlinOptions {
...
freeCompilerArgs = ["-Xopt-in=kotlin.time.ExperimentalTime"]
}
Of course in my scratch file I "use classpath of module" which defines the compiler argument. When I use measureTime
in regular code it works fine, but in the scratch file doesn't.