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

mcku picture mcku  路  3Comments

travisbrown picture travisbrown  路  3Comments

andreaTP picture andreaTP  路  3Comments

LaymanMergen picture LaymanMergen  路  3Comments

NightMachinary picture NightMachinary  路  3Comments