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
scala>deftest(y: Int) =|valx=10| x + y
|deftest(y: Int):Int
Output
[warn] -- [E129] PotentialIssueWarning:Test.scala:2:6
[warn] 2| test("hello")
[warn] |^^^^^^^^^^^^^
[warn] |A pure expression does nothing in statement position; you may be omitting necessary parentheses
[warn] one warning found
Expectation
Same as putting braces, no warnings should be printed.
[error] test("hello")
[error] | assert(1==1)
[error] |^^^^^^^^^^^^^^
[error] 🚩Off-side rule violation. An indentation is started but the previous line does not end with a marker.