Changeset 447 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp
- Timestamp:
- Mar 21, 2008, 2:23:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp
r438 r447 26 26 return true; 27 27 } 28 29 if( this->returnType.IsTypeParameter() ) 28 else if( this->returnType.IsCovariant( pUserProc->returnType ) ) 29 { 30 // 戻り値が共変 31 return true; 32 } 33 else if( this->returnType.IsTypeParameter() ) 30 34 { 31 35 // 型パラメータだったとき 36 32 37 if( actualTypeParametersForThisProc[this->returnType.GetFormalTypeIndex()].Equals( pUserProc->returnType ) ) 33 38 { 34 39 // 戻り値が等しい 40 return true; 41 } 42 else if( actualTypeParametersForThisProc[this->returnType.GetFormalTypeIndex()].IsCovariant( pUserProc->returnType ) ) 43 { 44 // 戻り値が共変 35 45 return true; 36 46 }
Note:
See TracChangeset
for help on using the changeset viewer.