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

Unified Diff: tests/language/regress_19728_test.dart

Issue 377413007: Fix crash for type variables with dynamic bound. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix copyright Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: tests/language/regress_19728_test.dart
diff --git a/samples/pop_pop_win/web/game_web.dart b/tests/language/regress_19728_test.dart
similarity index 61%
copy from samples/pop_pop_win/web/game_web.dart
copy to tests/language/regress_19728_test.dart
index fc287491ad5f29284f153db230883217a3e651c2..55dba6cda4c30545a30267bdce23944cb67fb9fb 100644
--- a/samples/pop_pop_win/web/game_web.dart
+++ b/tests/language/regress_19728_test.dart
@@ -1,11 +1,18 @@
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library pop_pop_win.game_web;
-import 'platform_web.dart';
-import 'package:pop_pop_win/pop_pop_win.dart';
+// Regression test for issue 19728.
-void main() {
- startGame(new PlatformWeb());
+class C<T extends dynamic> {
+ T field;
+
+ test() {
+ field = 0;
+ int i = field;
+ }
}
+
+void main() {
+ new C().test();
+}

Powered by Google App Engine
This is Rietveld 408576698