Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    rfc134a48 r39d8950  
    899899
    900900                                                if (argType.as<ast::PointerType>()) funcFinder.otypeKeys.insert(Mangle::Encoding::pointer);
    901                                                 else if (const ast::EnumInstType * enumInst = argType.as<ast::EnumInstType>()) {
    902                                                         const ast::EnumDecl * enumDecl = enumInst->base;
    903                                                         if ( const ast::Type* enumType = enumDecl->base ) {
    904                                                                 // instance of enum (T) is a instance of type (T)
    905                                                                 funcFinder.otypeKeys.insert(Mangle::mangle(enumType, Mangle::NoGenericParams | Mangle::Type));
    906                                                         } else {
    907                                                                 // instance of an untyped enum is techically int
    908                                                                 funcFinder.otypeKeys.insert(Mangle::mangle(enumDecl, Mangle::NoGenericParams | Mangle::Type));
    909                                                         }
    910                                                 }
    911901                                                else funcFinder.otypeKeys.insert(Mangle::mangle(argType, Mangle::NoGenericParams | Mangle::Type));
    912902                                        }
     
    928918
    929919                        // find function operators
    930                         ast::ptr< ast::Expr > opExpr = new ast::NameExpr{ untypedExpr->location, "?()" }; // ??? why not ?{}
     920                        ast::ptr< ast::Expr > opExpr = new ast::NameExpr{ untypedExpr->location, "?()" };
    931921                        CandidateFinder opFinder( context, tenv );
    932922                        // okay if there aren't any function operations
Note: See TracChangeset for help on using the changeset viewer.