generic method vs lambda

Topics: General, Language Specification
Sep 25, 2013 at 9:31 AM
Imagine this class
export class Test<T> {
        works: (item: T) => void;
        doesnt = (item: T) => {
        };
    }
and then this code to call both methods:
export class Tubo {
        point: Test<Tubo>;

        other = () => {
            this.point.doesnt(new Tubo());  // doesn't work, complains about supplied parameters not matching
            this.point.works(new Tubo());  // this works
        };
    }
Why the different behavior? I'd expect that both worked.
Coordinator
Sep 25, 2013 at 6:58 PM
These are supposed to behave the same, as you would expect. I've logged a bug.
Sep 25, 2013 at 7:29 PM
OK, I thought it might be a bug.
Thanks