Ignore:
Timestamp:
May 5, 2008, 9:41:23 AM (16 years ago)
Author:
dai_9181
Message:

エラーコード138をLexicalAnalyzer_Class.cppで表示するようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Class.cpp

    r546 r557  
    509509        }
    510510
    511         // インターフェイスを継承する
    512         currentClass.Implements( *pInterfaceClass, actualTypeParameters, nowLine );
     511        if( pInterfaceClass->IsInterface() || pInterfaceClass->IsComInterface() )
     512        {
     513            // インターフェイスを継承する
     514            currentClass.Implements( *pInterfaceClass, actualTypeParameters, nowLine );
     515        }
     516        else
     517        {
     518            // インターフェイスではないとき
     519            compiler.errorMessenger.Output(138,pInterfaceClass->GetName().c_str(),nowLine );
     520        }
    513521    }
    514522
Note: See TracChangeset for help on using the changeset viewer.