FIR IDE: pass candidate super types for AMBIGUOUS_SUPER

This way the IDE quickfix do not need to do resolution again to figure
out what super type to offer in the quickfix.
This commit is contained in:
Tianyu Geng
2021-10-12 16:21:48 -07:00
committed by Ilya Kirillov
parent 7c3706dd3f
commit bdc71a3281
11 changed files with 33 additions and 18 deletions
@@ -192,7 +192,9 @@ object DIAGNOSTICS_LIST : DiagnosticList("FirErrors") {
parameter<FirRegularClassSymbol>("type")
parameter<Collection<ConeKotlinType>>("bounds")
}
val AMBIGUOUS_SUPER by error<KtSuperExpression>()
val AMBIGUOUS_SUPER by error<KtSuperExpression> {
parameter<List<ConeKotlinType>>("candidates")
}
}
val CONSTRUCTOR_PROBLEMS by object : DiagnosticGroup("Constructor problems") {