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

Side by Side Diff: dart/tests/language/dynamic_test.dart

Issue 46163002: Bugfix in test.dart, adding of specialized test outcomes for analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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
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 // Dart test program testing the use of 'dynamic' in generic types. 5 // Dart test program testing the use of 'dynamic' in generic types.
6 // @static-clean
7 6
8 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
9 8
10 abstract class Iface<K,V> { 9 abstract class Iface<K,V> {
11 } 10 }
12 11
13 class M1<K, V> implements Iface<K, V> { 12 class M1<K, V> implements Iface<K, V> {
14 } 13 }
15 14
16 class M2<K> implements Iface<K, dynamic> { 15 class M2<K> implements Iface<K, dynamic> {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 Expect.equals("dynamic", has_field.dynamic); 58 Expect.equals("dynamic", has_field.dynamic);
60 59
61 HasMethodDynamic has_method = new HasMethodDynamic(); 60 HasMethodDynamic has_method = new HasMethodDynamic();
62 Expect.equals("dynamic", has_method.dynamic()); 61 Expect.equals("dynamic", has_method.dynamic());
63 62
64 { 63 {
65 int dynamic = 0; // Local variable named dynamic is allowed. 64 int dynamic = 0; // Local variable named dynamic is allowed.
66 Expect.equals(0, dynamic); 65 Expect.equals(0, dynamic);
67 } 66 }
68 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698