Skip to content

Commit 7d474c9

Browse files
scheglovcommit-bot@chromium.org
authored andcommitted
Remove fixed GENERIC_FUNCTION_TYPED_PARAM_UNSUPPORTED.
Change-Id: Id5119149cf24fe748a3100b3a2b774915928ddf7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122303 Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
1 parent c3cd6b0 commit 7d474c9

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

pkg/analyzer/lib/error/error.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ const List<ErrorCode> errorCodeValues = const [
156156
CompileTimeErrorCode.FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR,
157157
CompileTimeErrorCode.FINAL_INITIALIZED_MULTIPLE_TIMES,
158158
CompileTimeErrorCode.FOR_IN_WITH_CONST_VARIABLE,
159-
CompileTimeErrorCode.GENERIC_FUNCTION_TYPED_PARAM_UNSUPPORTED,
160159
CompileTimeErrorCode.GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND,
161160
CompileTimeErrorCode.GENERIC_FUNCTION_TYPE_CANNOT_BE_TYPE_ARGUMENT,
162161
CompileTimeErrorCode.IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY,

pkg/analyzer/lib/src/error/codes.dart

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,22 +2008,6 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
20082008
correction: "Try removing type parameters from the generic function "
20092009
"type, or using 'dynamic' as the type argument here.");
20102010

2011-
/**
2012-
* Temporary error to work around dartbug.com/28515.
2013-
*
2014-
* We cannot yet properly summarize function-typed parameters with generic
2015-
* arguments, so to prevent confusion, we produce an error for any such
2016-
* constructs (regardless of whether summaries are in use).
2017-
*
2018-
* TODO(paulberry): remove this once dartbug.com/28515 is fixed.
2019-
*/
2020-
static const CompileTimeErrorCode GENERIC_FUNCTION_TYPED_PARAM_UNSUPPORTED =
2021-
const CompileTimeErrorCode('GENERIC_FUNCTION_TYPED_PARAM_UNSUPPORTED',
2022-
"Analysis of generic function typed parameters isn't yet supported.",
2023-
correction:
2024-
"Try using an explicit typedef, or changing type parameters to "
2025-
"`dynamic`.");
2026-
20272011
static const CompileTimeErrorCode IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY =
20282012
const CompileTimeErrorCode(
20292013
'IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY',

0 commit comments

Comments
 (0)