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
objectTest {
extension (x: Int)
inlinedeftimes(inlineop: Unit):Unit= {
varcount=0while count < x do
op
count +=1
}
10.times { println("hello") }
}
Output
-- [E129] PotentialIssueWarning: examples/times.scala:7:8--------------------7| op
|^^|A pure expression does nothing in statement position; you may be omitting necessary parentheses
Expectation
The compiler should not generate the warning.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Minimized code
Output
Expectation
The compiler should not generate the warning.
The text was updated successfully, but these errors were encountered: