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

Unified Diff: dart/tests/language/part2_test.dart

Issue 11092003: Implement part-of directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status for dart2dart Created 8 years, 2 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: dart/tests/language/part2_test.dart
diff --git a/dart/tests/language/extend_type_parameter_negative_test.dart b/dart/tests/language/part2_test.dart
similarity index 68%
copy from dart/tests/language/extend_type_parameter_negative_test.dart
copy to dart/tests/language/part2_test.dart
index 197447e62eaff533ffb3ba1139255084cab27738..f2e3bea63fedccbe3fadeca77379e653e2f7d5f4 100644
--- a/dart/tests/language/extend_type_parameter_negative_test.dart
+++ b/dart/tests/language/part2_test.dart
@@ -2,10 +2,10 @@
// 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.
-// Extending a type parameter is not allowed.
+library org.dartlang.test.part2_test;
-class A<T> extends T { }
+part "part_part.dart"; // This is a static warning.
main() {
- A a = new A();
+ print(foo);
}

Powered by Google App Engine
This is Rietveld 408576698