Skip to content

Analyzer rejects tests/language_2/generic_methods_generic_function_result_test.dart #30207

Open
@crelier

Description

@crelier

The errors reported by the analyzer for tests/language_2/generic_methods_generic_function_result_test.dart does not look correct.

ERROR|STATIC_WARNING|LIST_ELEMENT_TYPE_NOT_ASSIGNABLE|/b/build/slave/azrs-be/build/sdk/tests/language_2/generic_methods_generic_function_result_test.dart|14|44|3|The element type '(int, T) → T' can't be assigned to the list type '(S, T) → T'.
ERROR|STATIC_WARNING|LIST_ELEMENT_TYPE_NOT_ASSIGNABLE|/b/build/slave/azrs-be/build/sdk/tests/language_2/generic_methods_generic_function_result_test.dart|14|49|3|The element type '(int, T) → T' can't be assigned to the list type '(S, T) → T'.
ERROR|STATIC_WARNING|ARGUMENT_TYPE_NOT_ASSIGNABLE|/b/build/slave/azrs-be/build/sdk/tests/language_2/generic_methods_generic_function_result_test.dart|21|35|3|The argument type 'int' can't be assigned to the parameter type 'S'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestanalyzer-testarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions