[FIR] Always report when named arguments are not allowed

#KT-59177 Fixed
This commit is contained in:
Brian Norman
2023-06-07 15:24:03 -05:00
committed by Space Team
parent 61ed34f4b7
commit 92cb47a8f9
7 changed files with 29 additions and 36 deletions
@@ -43,10 +43,10 @@ class TooManyArguments(
) : ResolutionDiagnostic(INAPPLICABLE_ARGUMENTS_MAPPING_ERROR)
class NamedArgumentNotAllowed(
override val argument: FirExpression,
val argument: FirExpression,
val function: FirFunction,
val forbiddenNamedArgumentsTarget: ForbiddenNamedArgumentsTarget
) : InapplicableArgumentDiagnostic()
) : ResolutionDiagnostic(INAPPLICABLE_ARGUMENTS_MAPPING_ERROR)
class ArgumentPassedTwice(
override val argument: FirExpression,