For example:
Java:
public class Foo {
public int getSomething() {
return 1;
}
}
Kotlin:
class Bar : Foo() {
// works
override fun getSomething() = 2
// doesn't work ('something' overrides nothing)
// override val something = 2
}
I thought that val something = 2
will be transformed to public int getSomething() { return 2; }
in Java bytecode.