mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:17:07 +00:00
Don't supply arguments when reporting CONST_DEFERRED_CLASS.
This error message doesn't take any arguments. Change-Id: I5ff2e43c6d6877189ad8cf7cefded72b4867a309 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213727 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
parent
f8b1161496
commit
eead1f7f5c
1 changed files with 1 additions and 3 deletions
|
@ -1987,9 +1987,7 @@ class ErrorVerifier extends RecursiveAstVisitor<void>
|
|||
ConstructorName constructorName, TypeName typeName) {
|
||||
if (typeName.isDeferred) {
|
||||
errorReporter.reportErrorForNode(
|
||||
CompileTimeErrorCode.CONST_DEFERRED_CLASS,
|
||||
constructorName,
|
||||
[typeName.name.name]);
|
||||
CompileTimeErrorCode.CONST_DEFERRED_CLASS, constructorName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue