Skip to content

Commit f905418

Browse files
authored
Fix a bug that only showed up in checked mode (#1741)
We were passing an Iterable in place of a List, but an implicit cast was hiding it from analysis and it worked in practice in unchecked mode.
1 parent f03a2c0 commit f905418

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/compiler.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class Compiler {
1616

1717
static final all = [dart2JS, dartDevc, none];
1818

19-
static Iterable<String> get names => all.map((compiler) => compiler.name);
19+
static List<String> get names =>
20+
all.map((compiler) => compiler.name).toList();
2021

2122
final String name;
2223

0 commit comments

Comments
 (0)