OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |