Changeset 448 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp
- Timestamp:
- Mar 21, 2008, 7:34:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp
r447 r448 161 161 162 162 return this->GetClass().IsSubClass( &type.GetClass() ); 163 } 164 bool Type::IsContravariant( const Type &type ) const 165 { 166 if( !this->IsObject() || !type.IsObject() ) 167 { 168 // 反変性の判別はクラス型のみ 169 return false; 170 } 171 172 return type.GetClass().IsSubClass( &this->GetClass() ); 163 173 } 164 174
Note:
See TracChangeset
for help on using the changeset viewer.