Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

ddc does not respect classes emulating functions in dart #19

Closed
@jacob314

Description

@jacob314

https://www.dartlang.org/articles/emulating-functions/

Repro:

typedef WindowClickHandler(Object e);

class DefaultWindowClickHandler {
  void call(Object e) { }
}

WindowClickHandler h = new DefaultWindowClickHandler(); 
// Generates an error as DefaultWindowClickHandler is not a WindowClickHandler

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