Drop Incompatible.NoImpl, fix no "missing impl" on nested class

Header/impl declarations are now considered fully compatible even in the
case when the impl declaration has no "impl" modifier. The error about
no "impl" is now reported separately and only on the impl declaration,
never on the header declaration

 #KT-20087 Fixed
This commit is contained in:
Alexander Udalov
2017-09-01 18:57:01 +03:00
parent b6c32edc43
commit ac1c7d9a6a
4 changed files with 59 additions and 38 deletions
@@ -68,7 +68,7 @@ class PlatformHeaderAnnotator : Annotator {
val trace = BindingTraceContext()
for (module in implementingModules) {
HeaderImplDeclarationChecker.checkHeaderDeclarationHasImplementation(declaration, descriptor, trace, module, checkImpl = false)
HeaderImplDeclarationChecker.checkHeaderDeclarationHasImplementation(declaration, descriptor, trace, module)
}
val suppressionCache = KotlinCacheService.getInstance(declaration.project).getSuppressionCache()