mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
List.get with negative index in repl
This commit is contained in:
parent
917e0e2027
commit
b0d57587e3
8 changed files with 109 additions and 33 deletions
|
@ -1296,6 +1296,16 @@ impl<'a> Spaceable<'a> for ImplementsAbilities<'a> {
|
|||
}
|
||||
|
||||
impl<'a> Expr<'a> {
|
||||
pub const REPL_OPAQUE_FUNCTION: Self = Expr::Var {
|
||||
module_name: "",
|
||||
ident: "<function>",
|
||||
};
|
||||
|
||||
pub const REPL_RUNTIME_CRASH: Self = Expr::Var {
|
||||
module_name: "",
|
||||
ident: "*",
|
||||
};
|
||||
|
||||
pub fn loc_ref(&'a self, region: Region) -> Loc<&'a Self> {
|
||||
Loc {
|
||||
region,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue