I am using the java library in which the class has a member named "type". If I do something like this:
class MyClass{ public MyClass(){ type = 5; } public int type; }
then the java compiler compiles it in order. But if I try to access it from scala:
val x = new MyClass() x.type = 10
I get this message:
Identifierbut the "type" is found.
How do I solve this problem?
I suppose this happened earlier, but I could not find a related question.
source share