| Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| index f437fdbaa0b16cd6091962d75da433c52dd4366c..18793bf51d4cf66db86c3a338a2ca2f6083b2a33 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| @@ -735,6 +735,7 @@ public class SemanticTest extends AbstractSemanticTest {
|
| " print(1);",
|
| " }",
|
| " int compareTo(Test other) => ordinal - other.ordinal;",
|
| + " int hashCode => ordinal;",
|
| " String toString() => name;",
|
| "}",
|
| "class Test_EOF extends Test {",
|
| @@ -778,6 +779,7 @@ public class SemanticTest extends AbstractSemanticTest {
|
| " MyEnum(this.name, this.ordinal) {",
|
| " }",
|
| " int compareTo(MyEnum other) => ordinal - other.ordinal;",
|
| + " int hashCode => ordinal;",
|
| " String toString() => name;",
|
| "}"),
|
| getFormattedSource(unit));
|
| @@ -811,6 +813,7 @@ public class SemanticTest extends AbstractSemanticTest {
|
| " Test(this.name, this.ordinal) {",
|
| " }",
|
| " int compareTo(Test other) => ordinal - other.ordinal;",
|
| + " int hashCode => ordinal;",
|
| " String toString() => name;",
|
| "}"),
|
| getFormattedSource(unit));
|
| @@ -859,6 +862,7 @@ public class SemanticTest extends AbstractSemanticTest {
|
| " _jtd_constructor_1_impl(int p) {",
|
| " }",
|
| " int compareTo(Test other) => ordinal - other.ordinal;",
|
| + " int hashCode => ordinal;",
|
| " String toString() => name;",
|
| "}"),
|
| getFormattedSource(unit));
|
| @@ -1673,6 +1677,7 @@ public class SemanticTest extends AbstractSemanticTest {
|
| " A(this.name, this.ordinal) {",
|
| " }",
|
| " int compareTo(A other) => ordinal - other.ordinal;",
|
| + " int hashCode => ordinal;",
|
| " String toString() => name;",
|
| "}",
|
| "class B {",
|
|
|