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

Unified Diff: tests/language/import_core_prefix_test.dart

Issue 11363159: - Make sure that we can actually use the class with the conflicting (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/import_core_prefix_test.dart
===================================================================
--- tests/language/import_core_prefix_test.dart (revision 14719)
+++ tests/language/import_core_prefix_test.dart (working copy)
@@ -9,11 +9,27 @@
class Object {
}
+class Map {
+ Map(this._lat, this._long);
+
+ get isPrimeMeridian => _long == 0;
+
+ var _lat;
+ var _long;
+}
+
+
void main() {
var test = new mycore.Map<mycore.int,mycore.String>();
mycore.bool boolval = false;
mycore.int variable = 10;
mycore.num value = 10;
mycore.dynamic d = null;
+ mycore.print(new mycore.Object());
mycore.print(new Object());
+
+ var greenwich = new Map(51, 0);
+ var pao = new Map(37, -122);
+ mycore.Expect.isTrue(greenwich.isPrimeMeridian);
+ mycore.Expect.isFalse(pao.isPrimeMeridian);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698