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