mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Ability members are functions too
This commit is contained in:
parent
638c446c2f
commit
f208f7b4a1
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ pub fn constrain_expr(
|
||||||
let (fn_var, loc_fn, closure_var, ret_var) = &**boxed;
|
let (fn_var, loc_fn, closure_var, ret_var) = &**boxed;
|
||||||
// The expression that evaluates to the function being called, e.g. `foo` in
|
// The expression that evaluates to the function being called, e.g. `foo` in
|
||||||
// (foo) bar baz
|
// (foo) bar baz
|
||||||
let opt_symbol = if let Var(symbol) = loc_fn.value {
|
let opt_symbol = if let Var(symbol) | AbilityMember(symbol, _) = loc_fn.value {
|
||||||
Some(symbol)
|
Some(symbol)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue