I’m new to IDEA/Kotlin but not jetbrains. I’m curious if this is how its supposed to work or do I need to configure something.
Here’s a test:
“`kotlin open class SomeSuper { val someprop = “” }
class SomeSub: SomeSuper() { override val someprop = “someval” } “`
“`shell $ kotlinc play.kt && kotlin PlayKt
play.kt:44:5: error: ‘someprop’ in ‘SomeSuper’ is final and cannot be overridden override val someprop = “someval “`
Shouldn’t the IDE catch this as I’m typing it? I’m sure I’m overlooking something. Nothing is shown in “problems window”.
submitted by /u/RapBeautician
[link] [comments]