Cannot run test with IDEA 2018.1 + JDK 10. It says:
Error:(6, 1) java: modules are not supported in -source 8 (use -source 9 or higher to enable modules)
I've raised language level up to 10 using menus:
File->Project Structure -> Project -> Project Language Level 10
File->Project Structure -> Modules{each module} -> Language Level 10
but it didn't help.
What can be reason of the error?