- Timestamp:
- Jun 29, 2018, 3:02:51 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 1f133dc
- Parents:
- 9f66811
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r9f66811 rc5283ba 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_ arg= 0;592 int n_mutex_param = 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_ arg, "\n" ));602 SemanticError( function, toString("candidate function not viable: too many mutex arguments, expected ", n_mutex_param, "\n" )); 603 603 } 604 604 605 n_mutex_ arg++;605 n_mutex_param++; 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 628 633 // We ran out of arguments but still have parameters left 629 634 // this function doesn't match 630 SemanticError( function, toString("candidate function not viable: too few mutex arguments, expected ", n_mutex_ arg, "\n" ));635 SemanticError( function, toString("candidate function not viable: too few mutex arguments, expected ", n_mutex_param, "\n" )); 631 636 } 632 637
Note: See TracChangeset
for help on using the changeset viewer.