File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed
dev_compiler/lib/src/kernel Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,6 @@ class Dart2jsTarget extends Target {
7878 @override
7979 bool get errorOnUnexactWebIntLiterals => true ;
8080
81- @override
82- bool get supportsSetLiterals => true ;
83-
8481 @override
8582 void performModularTransformationsOnLibraries (
8683 ir.Component component,
Original file line number Diff line number Diff line change @@ -91,9 +91,6 @@ class DevCompilerTarget extends Target {
9191 @override
9292 bool get errorOnUnexactWebIntLiterals => true ;
9393
94- @override
95- bool get supportsSetLiterals => true ;
96-
9794 @override
9895 bool get enableNoSuchMethodForwarders => true ;
9996
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ abstract class Target {
197197 /// literals are not supported by the target, they will be desugared into
198198 /// explicit `Set` creation (for non-const set literals) or wrapped map
199199 /// literals (for const set literals).
200- bool get supportsSetLiterals => false ;
200+ bool get supportsSetLiterals => true ;
201201
202202 /// Builds an expression that instantiates an [Invocation] that can be passed
203203 /// to [noSuchMethod] .
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ class VmTarget extends Target {
4545 @override
4646 bool get enableNoSuchMethodForwarders => true ;
4747
48+ @override
49+ bool get supportsSetLiterals => false ;
50+
4851 @override
4952 String get name => 'vm' ;
5053
You can’t perform that action at this time.
0 commit comments