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
This is correct, but we do want () for Unit-returning, or actually even for effectful methods (not sure we can enforce that.. maybe we can have a @pure annotation for that, but that's a lot more work to verify). For now, any nullary method returning non-Unit should not have (), any nullary method returning Unit should.
Currenly, code such as the following compiles without warning:
def method
should be used instead ofdef method()
.The text was updated successfully, but these errors were encountered: