Unable to use an instance of Type when constructing an instance of a parameterized type #11689
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
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;
}
The text was updated successfully, but these errors were encountered: