Constructor properties with useless annotations

Hello

I just wrote:   class Foo(public bar : Int)

and wondered why the property “bar” was not accessible from outside. Of course I did forget to add either val or var but shouldn’t the compile give a warning that “public” is useless in this case? Or does it have any effect?

bye,

-christian-

This is a bug. Please, file it in our tracker. Thanks