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

Side by Side Diff: tests/compiler/dart2js/resolver_test.dart

Issue 15689009: Type check try statements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename variable. Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/size_test.dart » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'dart:collection'; 6 import 'dart:collection';
7 7
8 import "../../../sdk/lib/_internal/compiler/implementation/resolution/resolution .dart"; 8 import "../../../sdk/lib/_internal/compiler/implementation/resolution/resolution .dart";
9 import "compiler_helper.dart"; 9 import "compiler_helper.dart";
10 import "parser_helper.dart"; 10 import "parser_helper.dart";
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 class int {} 752 class int {}
753 class double {} 753 class double {}
754 class bool {} 754 class bool {}
755 class String {} 755 class String {}
756 class num {} 756 class num {}
757 class Function {} 757 class Function {}
758 class List {} 758 class List {}
759 class Map {} 759 class Map {}
760 class Closure {} 760 class Closure {}
761 class Null {} 761 class Null {}
762 class StackTrace {}
762 class Dynamic_ {} 763 class Dynamic_ {}
763 class Type {} 764 class Type {}
764 class Object { Object() : super(); }'''; 765 class Object { Object() : super(); }''';
765 resolveConstructor(script, "Object o = new Object();", "Object", "", 1, 766 resolveConstructor(script, "Object o = new Object();", "Object", "", 1,
766 expectedWarnings: [], 767 expectedWarnings: [],
767 expectedErrors: [MessageKind.SUPER_INITIALIZER_IN_OBJECT], 768 expectedErrors: [MessageKind.SUPER_INITIALIZER_IN_OBJECT],
768 corelib: CORELIB_WITH_INVALID_OBJECT); 769 corelib: CORELIB_WITH_INVALID_OBJECT);
769 } 770 }
770 771
771 map(ResolverVisitor visitor) { 772 map(ResolverVisitor visitor) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 var d = new D(); 838 var d = new D();
838 --d; 839 --d;
839 }"""; 840 }""";
840 final compiler = compileScript(script); 841 final compiler = compileScript(script);
841 842
842 checkMemberResolved(compiler, 'A', operatorName('+', false)); 843 checkMemberResolved(compiler, 'A', operatorName('+', false));
843 checkMemberResolved(compiler, 'B', operatorName('+', false)); 844 checkMemberResolved(compiler, 'B', operatorName('+', false));
844 checkMemberResolved(compiler, 'C', operatorName('-', false)); 845 checkMemberResolved(compiler, 'C', operatorName('-', false));
845 checkMemberResolved(compiler, 'D', operatorName('-', false)); 846 checkMemberResolved(compiler, 'D', operatorName('-', false));
846 } 847 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/size_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698