Why is the type checking in Dart such strange?

前端 未结 0 1565
灰色年华
灰色年华 2020-12-21 04:03

Given code

List rawList = [0, 1, 2];
BuiltList list = [0, 1, 2].map((n) => n * 2);

compiles successfully but fails a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题