[FIR] Implement WRONG_NUMBER_OF_TYPE_ARGUMENTS for top level type aliases
This commit is contained in:
committed by
TeamCityServer
parent
09510633c7
commit
38820d3e41
+2
-2
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user