[FIR] Let prefix inc/dec call getter twice for compatibility with K1
#KT-57179 Fixed
This commit is contained in:
committed by
Space Team
parent
fea344faa4
commit
45d2424ad8
+6
@@ -141,6 +141,12 @@ class ErrorNodeDiagnosticCollectorComponent(
|
||||
// See FirForLoopChecker
|
||||
return
|
||||
}
|
||||
|
||||
// Prefix inc/dec on array access will have two calls to .get(...), don't report for the second one.
|
||||
if (source.kind == KtFakeSourceElementKind.DesugaredPrefixSecondGetReference) {
|
||||
return
|
||||
}
|
||||
|
||||
for (coneDiagnostic in diagnostic.toFirDiagnostics(session, source, qualifiedAccessSource)) {
|
||||
reporter.report(coneDiagnostic, context)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user