Changes in src/ResolvExpr/Resolver.cc [c5283ba:d286cf68]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
rc5283ba rd286cf68 583 583 // Make sure we don't widen any existing bindings 584 584 resultEnv.forbidWidening(); 585 585 586 586 // Find any unbound type variables 587 587 resultEnv.extractOpenVars( openVars ); … … 590 590 auto param_end = function->parameters.end(); 591 591 592 int n_mutex_ param= 0;592 int n_mutex_arg = 0; 593 593 594 594 // For every arguments of its set, check if it matches one of the parameter … … 600 600 // We ran out of parameters but still have arguments 601 601 // this function doesn't match 602 SemanticError( function, toString("candidate function not viable: too many mutex arguments, expected ", n_mutex_ param, "\n" ));602 SemanticError( function, toString("candidate function not viable: too many mutex arguments, expected ", n_mutex_arg, "\n" )); 603 603 } 604 604 605 n_mutex_ param++;605 n_mutex_arg++; 606 606 607 607 // Check if the argument matches the parameter type in the current scope … … 626 626 // Check if parameters are missing 627 627 if( advance_to_mutex( param, param_end ) ) { 628 do {629 n_mutex_param++;630 param++;631 } while( advance_to_mutex( param, param_end ) );632 633 628 // We ran out of arguments but still have parameters left 634 629 // this function doesn't match 635 SemanticError( function, toString("candidate function not viable: too few mutex arguments, expected ", n_mutex_ param, "\n" ));630 SemanticError( function, toString("candidate function not viable: too few mutex arguments, expected ", n_mutex_arg, "\n" )); 636 631 } 637 632
Note: See TracChangeset
for help on using the changeset viewer.