Index: tests/compiler/dart2js/serialization/test_data.dart |
diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart |
index 44420f3935978ad36ce6785533922c1e5b6b75d9..6dfa0955e80f85ede5e2c807c8acd326a48cc1f9 100644 |
--- a/tests/compiler/dart2js/serialization/test_data.dart |
+++ b/tests/compiler/dart2js/serialization/test_data.dart |
@@ -437,6 +437,23 @@ class C { |
} |
''', |
}), |
+ |
+ const Test('Double literal in constant constructor', const { |
+ 'main.dart': ''' |
+import 'a.dart'; |
+ |
+main() { |
+ const A(1.0); |
+} |
+''', |
+ }, preserializedSourceFiles: const { |
+ 'a.dart': ''' |
+class A { |
+ final field1; |
+ const A(a) : this.field1 = a + 1.0; |
+} |
+''', |
+ }), |
]; |
class Test { |