You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val given B is treated as a pattern val def, but this is too close to given B = B(false) so I would expect a syntax error in favour of the alias given,
alternatively, with #11897 fixed, it could be a way to define a (non-lazy) given?
The text was updated successfully, but these errors were encountered:
Compiler version
3.0.0
Minimized code
Output
compiles ok
Expectation
val given B
is treated as a pattern val def, but this is too close togiven B = B(false)
so I would expect a syntax error in favour of the alias given,alternatively, with #11897 fixed, it could be a way to define a (non-lazy) given?
The text was updated successfully, but these errors were encountered: