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
Unarry methods cannot be called with parenthesis, hence a unary method defined with parenthesis will never be callable.
classFoo {
defunary_-:Int=1defunary_!():Int=2// error should be identified heredeffoo= {
-this!this// error: method unary_! must be called with () argument
}
}
The text was updated successfully, but these errors were encountered:
[warn] -- [E100] SyntaxMigrationWarning:/tmp/3/community-build/community-projects/squants/shared/src/main/scala/squants/AbstractQuantityNumeric.scala:33:21
[warn] 33|defnegate(x: A) =-x
[warn] |^^
[warn] | method unary_- must be called with () argument
Unarry methods cannot be called with parenthesis, hence a unary method defined with parenthesis will never be callable.
The text was updated successfully, but these errors were encountered: