| 184 | ////////////////////////////////////////////////////////////////////////// |
| 185 | |
| 186 | bool BfGenericParamInstance::IsEnum() |
| 187 | { |
| 188 | if ((mGenericParamFlags & BfGenericParamFlag_Enum) != 0) |
| 189 | return true; |
| 190 | if (mTypeConstraint != NULL) |
| 191 | { |
| 192 | auto module = mTypeConstraint->GetModule(); |
| 193 | if ((module != NULL) && (mTypeConstraint->IsInstanceOf(module->mCompiler->mEnumTypeDef))) |
| 194 | return true; |
| 195 | } |
| 196 | return true; |
| 197 | return false; |
| 198 | } |
| 199 | |
| 200 | ////////////////////////////////////////////////////////////////////////// |
| 201 |
no test coverage detected