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

Unified Diff: tests/language/private_other_mixin2.lib

Issue 13521008: Handle private fields from mixins. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Test added Created 7 years, 8 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
« no previous file with comments | « tests/language/private_mixin2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/private_other_mixin2.lib
diff --git a/samples/tests/samples/standalone/time_test.dart b/tests/language/private_other_mixin2.lib
similarity index 54%
copy from samples/tests/samples/standalone/time_test.dart
copy to tests/language/private_other_mixin2.lib
index 32a8726ccaba707e59d14c9eb5589b446682c6d3..c23e7b5dfe31fa99ef027d93a6ee669d965d0ead 100644
--- a/samples/tests/samples/standalone/time_test.dart
+++ b/tests/language/private_other_mixin2.lib
@@ -2,13 +2,14 @@
// 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.
-import '../../../time/time_server.dart' as time;
+// Dart test for testing access to private fields on mixins.
-// @static-clean
-
-/**
- * This test exists to ensure that the time sample compiles without errors.
- */
-void main() {
+library private_mixin2_other;
+class C1 {
+ int _field = 42;
}
+
+class C2 extends Object with C1 {
+ int get field => _field;
+}
« no previous file with comments | « tests/language/private_mixin2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698