[FIR] Implement WRONG_NUMBER_OF_TYPE_ARGUMENTS for top level type aliases

This commit is contained in:
Ivan Kochurkin
2021-08-17 22:23:49 +03:00
committed by TeamCityServer
parent 09510633c7
commit 38820d3e41
12 changed files with 109 additions and 49 deletions
@@ -152,7 +152,7 @@ interface ConeUnmatchedTypeArgumentsError : ConeDiagnosticWithSingleCandidate {
class ConeWrongNumberOfTypeArgumentsError(
override val desiredCount: Int,
override val candidateSymbol: FirRegularClassSymbol,
override val candidateSymbol: FirClassLikeSymbol<*>,
source: KtSourceElement
) : ConeDiagnosticWithSource(source), ConeUnmatchedTypeArgumentsError {
override val reason: String get() = "Wrong number of type arguments"
@@ -166,7 +166,7 @@ class ConeNoTypeArgumentsOnRhsError(
}
class ConeOuterClassArgumentsRequired(
val symbol: FirRegularClassSymbol,
val symbol: FirClassLikeSymbol<*>,
) : ConeDiagnostic {
override val reason: String = "Type arguments should be specified for an outer class"
}