@@ -66,8 +66,6 @@ void isIdentityComparableWith() {
66
66
67
67
@ Test
68
68
void isIdentityComparableWithMetaclass () {
69
- RuntimeType typeType = new RuntimeType (new ClassSymbolImpl ("type" , "type" ));
70
-
71
69
ClassSymbolImpl metaclassSymbol = new ClassSymbolImpl ("Meta" , "Meta" );
72
70
metaclassSymbol .setHasMetaClass ();
73
71
RuntimeType metaClassType = new RuntimeType (metaclassSymbol );
@@ -78,16 +76,16 @@ void isIdentityComparableWithMetaclass() {
78
76
79
77
UnknownClassType unknownClassType = new UnknownClassType (metaclassSymbol );
80
78
81
- assertThat (typeType . isIdentityComparableWith (typeType )).isTrue ();
82
- assertThat (typeType .isIdentityComparableWith (metaClassType )).isTrue ();
83
- assertThat (typeType .isIdentityComparableWith (superMetaClassType )).isTrue ();
84
- assertThat (typeType .isIdentityComparableWith (unknownClassType )).isFalse ();
79
+ assertThat (InferredTypes . TYPE . isIdentityComparableWith (InferredTypes . TYPE )).isTrue ();
80
+ assertThat (InferredTypes . TYPE .isIdentityComparableWith (metaClassType )).isTrue ();
81
+ assertThat (InferredTypes . TYPE .isIdentityComparableWith (superMetaClassType )).isTrue ();
82
+ assertThat (InferredTypes . TYPE .isIdentityComparableWith (unknownClassType )).isFalse ();
85
83
86
- assertThat (metaClassType .isIdentityComparableWith (typeType )).isTrue ();
84
+ assertThat (metaClassType .isIdentityComparableWith (InferredTypes . TYPE )).isTrue ();
87
85
assertThat (metaClassType .isIdentityComparableWith (metaClassType )).isTrue ();
88
86
assertThat (metaClassType .isIdentityComparableWith (superMetaClassType )).isFalse ();
89
87
90
- assertThat (superMetaClassType .isIdentityComparableWith (typeType )).isTrue ();
88
+ assertThat (superMetaClassType .isIdentityComparableWith (InferredTypes . TYPE )).isTrue ();
91
89
assertThat (superMetaClassType .isIdentityComparableWith (metaClassType )).isFalse ();
92
90
assertThat (superMetaClassType .isIdentityComparableWith (superMetaClassType )).isTrue ();
93
91
}
0 commit comments