"Expecting a top level declaration" Syntax Error in Java project
Answered
Hello, everyone!
I am newbie in IntelliJ (2017.2.1 version). After some experiments with Kotlin in my Java project i have a little problem with System.out.println method:

I have a Syntax Error "Expecting a top level declaration". The project compile and run normally but a have these Syntax Errors.
Can't find the reason of the errors, because i did not remember what settings i have changed ((.
New projects have the same problems.
Does anyone have any ideas about that?
Please sign in to leave a comment.
Please share a sample project that will reproduce the problem: https://intellij-support.jetbrains.com/hc/articles/206869619.
I`ve found the reason. Its was Language Injections settings.
Thanks for reply!