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

Unified Diff: frog/tests/leg_only/src/StaticField2Test.dart

Issue 8949039: Make sure a class is resolved before looking up its elements. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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: frog/tests/leg_only/src/StaticField2Test.dart
===================================================================
--- frog/tests/leg_only/src/StaticField2Test.dart (revision 2693)
+++ frog/tests/leg_only/src/StaticField2Test.dart (working copy)
@@ -12,23 +12,9 @@
class A {
static int b;
-
- setA(val) {
- b = val;
- }
-
- bar() {
- return b;
- }
-
- bar2() {
- return A.b;
- }
}
main() {
- A a = new A();
- a.setA(42);
- expectEquals(42, a.bar());
- expectEquals(42, a.bar2());
+ A.b = 42;
+ expectEquals(42, A.b);
}

Powered by Google App Engine
This is Rietveld 408576698