Skip to content

Problem with type definition using generics #51152

Closed
@bytes7bytes7

Description

@bytes7bytes7

I think that there is a serious problem with generic types.
On the 1st screenshot you can read whole code.
On the 2nd screenshot you can see that the type of wrapper is Wrapper<int> (as expected)
On the 3rd screenshot you can see that the type of result is Future<dynamic> (as NOT expected, I expect Future<int>)

  • Dart SDK Version 3.7.0
  • Windows 10 x64

common
type1
type2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions