Fix param number

This commit is contained in:
Jeremy A. Kolb 2018-10-30 14:09:53 -04:00
parent bc4de7128f
commit 93dc703011

View File

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