Unresolved type LocalDate in Kotlin class
Answered
I created a new Kotlin project using Intellij 2016.3.3 and importing java.time.LocalDate doesn't do anything.
Building the same class with a simple gradle script does work so this looks like a problem with the IDE.
Have I missed an obvious setting?
Please sign in to leave a comment.
Please discuss Kotlin specific issues at https://discuss.kotlinlang.org/ and report bugs at https://youtrack.jetbrains.com/issues/KT. Thank you.
Is discuss.kotlinlang.org in charge of bug with the intellij kotlin plugin?
Bacause as I said, building with gradle does work, so Kotlin isn't the issue here.
The only thing not working is Intellij not understanding "import java.time.LocalDate" when this line is in a Kotlin file, inside a Kotlin project.
Yes, the issue is Kotlin specific in this case.
Thank you.
I will try my luck over there.