Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/TypeSubstitution.h

    rea6332d rc93bc28  
    1616#pragma once
    1717
    18 #include <cassert>                 // for assert
    19 #include <iosfwd>                  // for ostream
    20 #include <list>                    // for list<>::iterator, _List_iterator
    21 #include <map>                     // for _Rb_tree_iterator, map, map<>::val...
    22 #include <set>                     // for set
    23 #include <string>                  // for string, operator!=
    24 #include <utility>                 // for pair
     18#include <map>
     19#include <set>
     20#include <cassert>
    2521
    26 #include "Common/SemanticError.h"  // for SemanticError
    27 #include "SynTree/Declaration.h"   // for TypeDecl, Declaration (ptr only)
    28 #include "SynTree/Expression.h"    // for Expression (ptr only), NameExpr (p...
    29 #include "SynTree/Mutator.h"       // for Mutator
    30 #include "SynTree/Type.h"          // for Type, ArrayType (ptr only), BasicT...
     22#include "SynTree/Mutator.h"
     23#include "SynTree/Declaration.h"
     24#include "SynTree/Expression.h"
    3125
    3226class TypeSubstitution : public Mutator {
     
    117111                                } // if
    118112                        } else {
    119                                 throw SemanticError( "Attempt to provide non-type parameter for type parameter", formal );
     113                                throw SemanticError( toString( "Attempt to provide non-type parameter: ", toString( *actualIt ).c_str(), " for type parameter " ), formal );
    120114                        } // if
    121115                } else {
Note: See TracChangeset for help on using the changeset viewer.