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

Side by Side Diff: tests/language/src/TypeVariableShadowsClass.dart

Issue 9250017: Allow classes shadowed by type variables to be referenced in static context (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: oops, left bad test in. Created 8 years, 11 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // A reference to a class that is shadowed by a type variable should still work
6 // in a static context.
7
8 class T {
9 String toString() => "Class T";
10 }
11
12 class A<T> {
13 static method() {
14 var foo = new T();
15 Expect.equals("Class T", foo.toString());
16 }
17 }
18
19 main() {
20 A.method();
21 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | tests/language/src/TypeVariableStaticContextNegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698