void CheckInterfaceBaseTypes(InterfaceDefinition node) { foreach (TypeReference baseType in node.BaseTypes) { IType tag = GetType(baseType); if (!tag.IsInterface) { Error(CompilerErrorFactory.InterfaceCanOnlyInheritFromInterface(baseType, node.FullName, tag.FullName)); } } }