I'm having a weird error using Kotlin with Eclipse IDE (Oxygen + Kotlin plugin 0.8.6 + Java 10.0.2).
While it's able to compile the code shown here:
package com.test
fun main(args: Array<String>) {
Thread.currentThread()
println("hello")
}
It always fails executing inside Eclipse (in fact I think it fails while trying to compile) it with following error:
/<path>/src/com/test/Test1.kt
ERROR: Unresolved reference: Thread (6, 5)
And, it works properly if the same is done in Intellij IDEA. But I would like keep using Eclipse.
Any thoughts about what could be happening?