Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use an instance of Type when constructing an instance of a parameterized type #11689

Closed
sethladd opened this issue Jul 3, 2013 · 1 comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

sethladd commented Jul 3, 2013

Consider this code:

DB.get(Person, id).then((person) ...)

And the implementation:

static Future<?? how to put type here> get(Type type, String id) {
  var completer = new Completer<?? how to put type here>(); // ERROR can't use 'type' here

  // ...

  return completer.future;
}

@lrhn
Copy link
Member

lrhn commented Jul 5, 2013

This seems like a request for type-parameterized/generic methods.


Added Duplicate label.
Marked as being merged into #254.

@sethladd sethladd added Type-Enhancement area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report labels Jul 5, 2013
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants