[FIR] Fix reporting of TYPE_ARGUMENTS_NOT_ALLOWED instead of WRONG_NUMBER_OF_TYPE_ARGUMENTS
This commit is contained in:
committed by
Space Team
parent
42e5e43302
commit
8d27af5b0d
+1
-2
@@ -286,9 +286,8 @@ class FirTypeResolverImpl(private val session: FirSession) : FirTypeResolver() {
|
||||
|
||||
if (currentDeclaration == null) {
|
||||
// It's a package name
|
||||
// TODO: report TYPE_ARGUMENTS_NOT_ALLOWED instead of WRONG_NUMBER_OF_TYPE_ARGUMENTS
|
||||
if (qualifierPartArgsCount > 0) {
|
||||
return createWrongNumberOfTypeArgumentsError(0, qualifierPartIndex, symbol, typeRef)
|
||||
return ConeErrorType(ConeTypeArgumentsNotAllowedError(qualifierPart.typeArgumentList.source!!))
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user