Changeset 447 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp
- Timestamp:
- Mar 21, 2008, 2:23:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp
r424 r447 150 150 } 151 151 return false; 152 } 153 154 bool Type::IsCovariant( const Type &type ) const 155 { 156 if( !this->IsObject() || !type.IsObject() ) 157 { 158 // 共変性の判別はクラス型のみ 159 return false; 160 } 161 162 return this->GetClass().IsSubClass( &type.GetClass() ); 152 163 } 153 164
Note:
See TracChangeset
for help on using the changeset viewer.