Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Unified Diff: test/checker/inferred_type_test.dart

Issue 1064933006: Enable downward inference on default params (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/checker/checker_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/inferred_type_test.dart
diff --git a/test/checker/inferred_type_test.dart b/test/checker/inferred_type_test.dart
index bf2d70922844cb71e17539d55aea5533550f1dec..3efac2a8bebebb98f1d1f575a341ffa0e58f0d4d 100644
--- a/test/checker/inferred_type_test.dart
+++ b/test/checker/inferred_type_test.dart
@@ -1342,6 +1342,10 @@ void main() {
test('downwards inference on list literals', () {
String mk(String info) => '''
+ void foo([List<String> list1 = /*$info*/const [],
+ List<String> list2 = /*severe:StaticTypeError*/const [42]]) {
+ }
+
void main() {
{
List<int> l0 = /*$info*/[];
@@ -1423,6 +1427,9 @@ void main() {
test('downwards inference on map literals', () {
String mk(String info) => '''
+ void foo([Map<int, String> m1 = /*$info*/const {1: "hello"},
+ Map<int, String> m1 = /*severe:StaticTypeError*/const {"hello": "world"}]) {
+ }
void main() {
{
Map<int, String> l0 = /*$info*/{};
« no previous file with comments | « test/checker/checker_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698