mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
1.1 KiB
1.1 KiB
META
description=Double question default value
type=expr
SOURCE
get_name!({}) ?? "Bob"
EXPECTED
UNDEFINED VARIABLE - double_question_binop.md:1:1:1:10 NOT IMPLEMENTED - double_question_binop.md:1:1:1:23
PROBLEMS
UNDEFINED VARIABLE
Nothing is named get_name! in this scope.
Is there an import or exposing missing up-top?
double_question_binop.md:1:1:1:10:
get_name!({}) ?? "Bob"
^^^^^^^^^
NOT IMPLEMENTED This feature is not yet implemented: unsupported operator
double_question_binop.md:1:1:1:23:
get_name!({}) ?? "Bob"
^^^^^^^^^^^^^^^^^^^^^^
This error doesn't have a proper diagnostic report yet. Let us know if you want to help improve Roc's error messages!
TOKENS
LowerIdent,NoSpaceOpenRound,OpenCurly,CloseCurly,CloseRound,OpDoubleQuestion,StringStart,StringPart,StringEnd,
EndOfFile,
PARSE
(e-binop (op "??")
(e-apply
(e-ident (raw "get_name!"))
(e-record))
(e-string
(e-string-part (raw "Bob"))))
FORMATTED
NO CHANGE
CANONICALIZE
(e-runtime-error (tag "not_implemented"))
TYPES
(expr (type "Error"))