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

Side by Side Diff: pkg/analyzer/test/src/task/strong/inferred_type_test.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/compiler/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.test.src.task.strong.inferred_type_test; 5 library analyzer.test.src.task.strong.inferred_type_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 class B extends A { B(ignore); } 2887 class B extends A { B(ignore); }
2888 var a = new A(); 2888 var a = new A();
2889 // Note: it doesn't matter that some of these refer to 'x'. 2889 // Note: it doesn't matter that some of these refer to 'x'.
2890 var b = new B(/*error:UNDEFINED_IDENTIFIER*/x); // allocations 2890 var b = new B(/*error:UNDEFINED_IDENTIFIER*/x); // allocations
2891 var c1 = [/*error:UNDEFINED_IDENTIFIER*/x]; // list literals 2891 var c1 = [/*error:UNDEFINED_IDENTIFIER*/x]; // list literals
2892 var c2 = const []; 2892 var c2 = const [];
2893 var d = <dynamic, dynamic>{'a': 'b'}; // map literals 2893 var d = <dynamic, dynamic>{'a': 'b'}; // map literals
2894 var e = new A()..x = 3; // cascades 2894 var e = new A()..x = 3; // cascades
2895 var f = 2 + 3; // binary expressions are OK if the left operand 2895 var f = 2 + 3; // binary expressions are OK if the left operand
2896 // is from a library in a different strongest 2896 // is from a library in a different strongest
2897 // conected component. 2897 // connected component.
2898 var g = -3; 2898 var g = -3;
2899 var h = new A() + 3; 2899 var h = new A() + 3;
2900 var i = /*error:UNDEFINED_OPERATOR,info:DYNAMIC_INVOKE*/- new A(); 2900 var i = /*error:UNDEFINED_OPERATOR,info:DYNAMIC_INVOKE*/- new A();
2901 var j = /*info:UNNECESSARY_CAST*/null as B; 2901 var j = /*info:UNNECESSARY_CAST*/null as B;
2902 2902
2903 test1() { 2903 test1() {
2904 a = /*error:INVALID_ASSIGNMENT*/"hi"; 2904 a = /*error:INVALID_ASSIGNMENT*/"hi";
2905 a = new B(3); 2905 a = new B(3);
2906 b = /*error:INVALID_ASSIGNMENT*/"hi"; 2906 b = /*error:INVALID_ASSIGNMENT*/"hi";
2907 b = new B(3); 2907 b = new B(3);
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after
5011 .test_unsafeBlockClosureInference_functionCall_explicitTypeParam_viaExpr 2(); 5011 .test_unsafeBlockClosureInference_functionCall_explicitTypeParam_viaExpr 2();
5012 } 5012 }
5013 5013
5014 @failingTest 5014 @failingTest
5015 @override 5015 @override
5016 test_unsafeBlockClosureInference_functionCall_explicitTypeParam_viaExpr2_comme nt() async { 5016 test_unsafeBlockClosureInference_functionCall_explicitTypeParam_viaExpr2_comme nt() async {
5017 await super 5017 await super
5018 .test_unsafeBlockClosureInference_functionCall_explicitTypeParam_viaExpr 2_comment(); 5018 .test_unsafeBlockClosureInference_functionCall_explicitTypeParam_viaExpr 2_comment();
5019 } 5019 }
5020 } 5020 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/compiler/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698