Changeset 251ce80 for src/ResolvExpr/Resolver.cc
- Timestamp:
- Jun 1, 2023, 6:29:47 PM (13 months ago)
- Branches:
- ast-experimental, master
- Children:
- 24d6572, ded6c2a6
- Parents:
- 1803d4d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r1803d4d r251ce80 1108 1108 void removeExtraneousCast( ast::ptr<ast::Expr> & expr, const ast::SymbolTable & symtab ) { 1109 1109 if ( const ast::CastExpr * castExpr = expr.as< ast::CastExpr >() ) { 1110 if ( typesCompatible( castExpr->arg->result, castExpr->result , symtab) ) {1110 if ( typesCompatible( castExpr->arg->result, castExpr->result ) ) { 1111 1111 // cast is to the same type as its argument, remove it 1112 1112 swap_and_save_env( expr, castExpr->arg ); … … 1834 1834 if ( 1835 1835 ! unify( 1836 arg->expr->result, *param, resultEnv, need, have, open, 1837 symtab ) 1836 arg->expr->result, *param, resultEnv, need, have, open ) 1838 1837 ) { 1839 1838 // Type doesn't match
Note: See TracChangeset
for help on using the changeset viewer.