Ability members are functions too

This commit is contained in:
Ayaz Hafiz 2022-05-06 15:00:10 -04:00 committed by ayazhafiz
parent 638c446c2f
commit f208f7b4a1

View file

@ -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