Skip to content

implement generic functions/methods in other AST nodes besides MethodInvocation #25175

Closed
@jmesserly

Description

@jmesserly

Right now generic function calls are only supported for the MethodInvocation AST node, which applies to method calls like o.m<t>(...) and function calls like f<t>(...)

We need to support these:

  • tear offs, e.g. o.m
  • instantiated tear offs, e.g. o.m<t>
  • instantiation of the function type, e.g. var y = f<int>;
  • function expression invocation, e.g. (f)(1, 2) or (f)<int>(1, 2)
  • generic function expression, e.g. <T>(T x) => x

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onclosed-duplicateClosed in favor of an existing reportlegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions