Skip to content

Issue 1263 - existing specializations of generic functions are not type-checked - haxe #1263

Closed
@issuesbot

Description

@issuesbot

[Google Issue #1263 : https://code.google.com/p/haxe/issues/detail?id=1263]
by simon.kr...@simn.de, at 03/11/2012, 17:22:28

class Main {
    static function main() {
        process(1); // Argument count mismatch
    }
    @:generic static function process<T>(t:T):T {
        return t;
    }
    static function process_Int() { }
}

The existing process_Int function is not unified with the expected type TFun([Int],Int).

Activity

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

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