Dart: cannot assigna type with generics to a Type variable

Viewed 1185

If I try to assign a type with generics to a Type variable I get an error, but if I use a runtimeType variable everything works fine.

  Type t = List;
  //Type t1 = List<int>;  // ERROR !!!
  Type t2 = new List<int>().runtimeType;
  print('$t $t2');  //> List List<int>

Is it a bug or there is something I'm not getting?

2 Answers
Related