Dotty: constructor's param cannot be open

Created on 23 Jun 2020  路  2Comments  路  Source: lampepfl/dotty

Minimized code

class C(open: Int)

Output

[error] 1 |class C(open: Int)
[error]   |            ^
[error]   |             values cannot be open

Expectation

I know that open is a soft modifier

open is a soft modifier. It is treated as a normal identifier unless it is in modifier position.

But should it be treated as a normal identifier in this case?

bug

Most helpful comment

Actually it looks like #9127 already fixed it

All 2 comments

Solution might be related to #9127

Actually it looks like #9127 already fixed it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

felixmulder picture felixmulder  路  120Comments

odersky picture odersky  路  28Comments

odersky picture odersky  路  45Comments

lihaoyi picture lihaoyi  路  30Comments

TomasMikula picture TomasMikula  路  28Comments