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 {
deffoo(x: =>Int) ={
vala= x _ // errorvalb: () =>Int= x _ // error
}
}
The first error message is correct, but the second leaks the ErrorType and thus looks confusing:
-- [E099] SyntaxError:try/byeta.scala:3:14-----------------------------------3|vala= x _ // error|^^^|Not a function: =>Int(x): cannot be followed by _
longer explanation available when compiling with`-explain`-- [E099] SyntaxError:try/byeta.scala:4:25-----------------------------------4|valb: () =>Int= x _ // error|^^^|Not a function: <error found: Int|required: () =>Int||>: cannot be followed by _
The text was updated successfully, but these errors were encountered:
The first error message is correct, but the second leaks the ErrorType and thus looks confusing:
The text was updated successfully, but these errors were encountered: