已合并
fix(unittest): indirect interface default static methods #2091
Ilya Yaroshevskiy创建于 8月28日
fix(unittest): indirect interface default static methods #2091
已合并
共 1 个文件变更+1-1
| @@ -239,7 +239,7 @@ std::vector<Ptr<InterfaceDecl>> FindInterfacesWithDefaults(Ptr<InheritableDecl> | |||
| 239 | { | 239 | { |
| 240 | std::vector<Ptr<InterfaceDecl>> res; | 240 | std::vector<Ptr<InterfaceDecl>> res; |
| 241 | 241 | ||
| 242 | - for (auto& inherited : decl->inheritedTypes) { | 242 | + for (auto& inherited : decl->GetAllSuperDecls()) { |
| 243 | auto typeDecl = Ty::GetDeclOfTy(inherited->GetTy()); | 243 | auto typeDecl = Ty::GetDeclOfTy(inherited->GetTy()); |
| 244 | auto interfaceDecl = As<ASTKind::INTERFACE_DECL>(typeDecl); | 244 | auto interfaceDecl = As<ASTKind::INTERFACE_DECL>(typeDecl); |
| 245 | if (!interfaceDecl) { | 245 | if (!interfaceDecl) { |