Skip to content

generic function overload issue #628

Closed

Description

@Frotty

Shouldn't both cases work?

public function LinkedList<string>.foo(string separator) returns string
	this.foo<string>(s -> s, separator) // Doesn't work
	this.foo2<string>(s -> s, separator) // Works

public function LinkedList<T>.foo<T>(ToStringClosure<T> cls, string separator)

public function LinkedList<T>.foo2<T>(ToStringClosure<T> cls, string separator)

The error says "expected 0 arguments".

Activity

  1. peq commented on Jun 13, 2018

    @peq
    Collaborator

    Fixed with #673

  2. added a commit that references this issue on Jun 13, 2018
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