source:
dev/trunk/ab5.0/abdev/BasicCompiler_Common/src/Delegate.cpp@
601
Last change on this file since 601 was 597, checked in by , 16 years ago | |
---|---|
File size: 406 bytes |
Line | |
---|---|
1 | #include "stdafx.h" |
2 | |
3 | bool Delegate::IsSimilar( const Delegate &dgt ) const |
4 | { |
5 | if( this->Params().Equals( dgt.Params(), true ) ) // パラメータが等しい、もしくは反変 |
6 | { |
7 | if( this->returnType.Equals( dgt.returnType ) ) |
8 | { |
9 | // 戻り値が等しい |
10 | return true; |
11 | } |
12 | else if( this->returnType.IsCovariant( dgt.returnType ) ) |
13 | { |
14 | // 戻り値が共変 |
15 | return true; |
16 | } |
17 | } |
18 | return false; |
19 | } |
Note:
See TracBrowser
for help on using the repository browser.