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
{{ message }}
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
ergo$ return {a: 1}?.a
Compilation error (at line 1 col 7). Cannot match unless against an option type
return {a: 1}?.a
^^^^^^^^^
ergo$ return 1?.a
Compilation error (at line 1 col 7). Cannot match unless against an option type
return 1?.a
^^^^
ergo$ return some({a:1})?.a
Response. some(1) : Integer?
ergo$ return none?.a
Response. none : Nothing?
ergo$ let x : {a:Integer}? = none; return x?.a
Response. none : Integer?
Because of the way
?.
is implemented, things like this happen:(This should be a type error, I think, because people will surely try to do this and get confused.)
The text was updated successfully, but these errors were encountered: