Skip to content

Generic Inference #3463

Description

@lerno

Generic inference has 3 possible implementations:

  1. fn void foo(Type[] a, Type b) <Type> { ... } implicit inference according some order
  2. fn void foo(%Type[] a, Type b) <Type> { ... } implicit inference with explicit guide. In this example, the type on a guides it.
  3. fn void foo(Type[] a, Type b) <Type = $Typeof(a[0])> { ... } explicit inference rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions