Merge #168
168: Fix param number r=matklad a=kjeremy Fixes the parameter number if we are not in a method Co-authored-by: Jeremy A. Kolb <jkolb@ara.com>
This commit is contained in:
commit
d10214581e
@ -460,7 +460,7 @@ pub fn resolve_callable(
|
||||
|
||||
if num_params == 1 {
|
||||
if !has_self {
|
||||
current_parameter = Some(1);
|
||||
current_parameter = Some(0);
|
||||
}
|
||||
} else if num_params > 1 {
|
||||
// Count how many parameters into the call we are.
|
||||
|
Loading…
Reference in New Issue
Block a user