Weird error message for Kotlin Range

Answered

Does anybody have an idea why I see this weird error message?
Variables a and b are perfectly normal Int type values (as indicated by the superfluous redundant toInt() mapping).
This appears to happen only in context of my using of the java.awt.point type. But how would the erroneous statement know where a1 and b1 have come from originally? What happens here under the hood that causes this?

Is this an issue with the work bench or is more like a Kotlin compiler issue? Or is it a problem with me myself (me being stupid?).

0
1 comment

Please try to remove (rename) config and system [IDEA directories](https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory), remove cache from `~/.gradle` and `~/.m2`, remove .idea project directory and reimport the project. Also, check that Project JDK is valid.

0

Please sign in to leave a comment.