Ignore:
Timestamp:
Jan 2, 2008, 12:50:34 AM (16 years ago)
Author:
dai_9181
Message:

ジェネリクスインターフェイス実装時のオーバーロード解決ロジックを改良。(型パラメータを戻り値に持つメソッドのオーバーロードをミスしてしまうバグを修正)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/Procedure.h

    r364 r382  
    55#include <Program.h>
    66#include <Class.h>
    7 #include <Method.h>
    87#include <Procedure.h>
    98#include <Parameter.h>
     
    225224    }
    226225
    227     // オーバーライド用に関数同士が等しいかどうかをチェックする
    228     bool IsEqualForOverride( const UserProc *pUserProc ) const
    229     {
    230         if( this->GetName() == pUserProc->GetName()                     // 名前空間及び名前が等しい
    231             && this->Params().Equals( pUserProc->Params() )             // パラメータが等しい
    232             && this->returnType.Equals( pUserProc->returnType ) )       // 戻り値が等しい
    233         {
    234             return true;
    235         }
    236         return false;
    237     }
     226    /*!
     227    @brief  オーバーライド用に関数同士が等しいかどうかをチェックする
     228    @param  actualTypeParametersForThisProc thisオブジェクトで保有するメソッドを対象とした実型パラメータ
     229            pUserProc 照らし合わせる関数
     230    */
     231    bool IsEqualForOverride( const Types &actualTypeParametersForThisProc, const UserProc *pUserProc ) const;
    238232
    239233    bool IsMacro() const
Note: See TracChangeset for help on using the changeset viewer.