Changes in src/SymTab/Validate.cc [ed8a0d2:ce8c12f]
- File:
-
- 1 edited
-
src/SymTab/Validate.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
red8a0d2 rce8c12f 818 818 } 819 819 PointerType * ptrType = dynamic_cast< PointerType * >( params.front()->get_type() ); 820 if ( ! ptrType || ptrType->is_array() ) { 820 ReferenceType * refType = dynamic_cast< ReferenceType * >( params.front()->get_type() ); 821 if ( ( ! ptrType && ! refType ) || ( ptrType && ptrType->is_array() ) ) { 821 822 throw SemanticError( "First parameter of a constructor, destructor, or assignment function must be a pointer ", funcDecl ); 822 823 }
Note:
See TracChangeset
for help on using the changeset viewer.