Changeset 82a5ea2 for src/GenPoly


Ignore:
Timestamp:
Sep 5, 2024, 4:07:48 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
a933489b
Parents:
508cff0
Message:

Added checks for (and a test to check the checks) assertions we will not be able to adapt. Using an adapted version of Mike's error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cpp

    r508cff0 r82a5ea2  
    515515                ast::FunctionType const * adaptee,
    516516                TypeVarMap const & typeVars ) {
     517        assertf( ast::FixedArgs == adaptee->isVarArgs,
     518                "Cannot adapt a varadic function, should have been checked." );
    517519        ast::FunctionType * adapter = ast::deepCopy( adaptee );
    518520        if ( isDynRet( adapter, typeVars ) ) {
Note: See TracChangeset for help on using the changeset viewer.