[FIR] Enhance diagnostic DSL to be able to use concrete factories
Before this commit, things like DiagnosticFactory0<KtDeclaration> were effectively unusable.
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ abstract class AbstractFirDiagnosticsWithLightTreeTest : AbstractFirDiagnosticsT
|
||||
val diagnostics = fileToDiagnostics[firFile] ?: emptyList()
|
||||
|
||||
val actualDiagnostics = diagnostics.groupBy {
|
||||
require(it is FirLightDiagnostic<*>)
|
||||
require(it is FirLightDiagnostic)
|
||||
it.element.startOffset
|
||||
}.mapValues { (_, diagnostics) -> diagnostics.map { it.factory.name }.countEntries() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user