Skip to content

Implement a general mechanism for type parameter inference #61

Closed

Description

@dcodeIO

Type parameter inference is currently limited to builtins.

var a = 42.0;
abs(a); // works

function myFunc<T>(a: T) {}
myFunc(a); // does not work
myFunc<f64>(a); // works

Putting this here so I don't forget.

Activity

  1. self-assigned this
    on Apr 2, 2018
  2. dcodeIO commented on Apr 28, 2018

    @dcodeIO
    MemberAuthor

    Most common cases are handled at this point, so closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions