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
In the following, return type is inferred as (=> a).
Is this the right behavior?
classLazyValVsFunctionType[a] {
valf: a => a = x => {
lazyval_x: a =thrownew java.lang.Error("todo")
_x // error: type mismatch/*[error] found : a => => a[error] required: a => a[error] val f: a => a = x => {[error] ^[error] one error found*/// _x: a // ok
}
}
The text was updated successfully, but these errors were encountered:
In the following, return type is inferred as (=> a).
Is this the right behavior?
The text was updated successfully, but these errors were encountered: