Index: test/codegen/language/static_field_override3_test.dart |
diff --git a/test/codegen/language/hashcode_dynamic_test.dart b/test/codegen/language/static_field_override3_test.dart |
similarity index 61% |
copy from test/codegen/language/hashcode_dynamic_test.dart |
copy to test/codegen/language/static_field_override3_test.dart |
index b705dd8afaaf98e39def9dde62120f5eff404962..a33147d67816c83f659a9c07334e0f72beeaad89 100644 |
--- a/test/codegen/language/hashcode_dynamic_test.dart |
+++ b/test/codegen/language/static_field_override3_test.dart |
@@ -2,9 +2,16 @@ |
// 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 "package:expect/expect.dart"; |
+import 'package:expect/expect.dart'; |
-void main() { |
- dynamic x = 3; |
- Expect.equals(3, x.hashCode); |
+class Foo { |
+ static int x = 42; |
+} |
+ |
+class Bar extends Foo { |
+ static int x = 12; |
} |
+ |
+void main() { |
+ Expect.equals(12, Bar.x); |
+} |