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

Unified Diff: tests/compiler/dart2js/kernel/closed_world2_test.dart

Issue 2997033002: Revert "Implement .getCallType" and "Update status" (Closed)
Patch Set: Created 3 years, 4 months 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 | « tests/compiler/dart2js/equivalence/check_functions.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/closed_world2_test.dart
diff --git a/tests/compiler/dart2js/kernel/closed_world2_test.dart b/tests/compiler/dart2js/kernel/closed_world2_test.dart
index bb162c231ad46d84d14747aed38603052828ddda..952479c3d49100cb37cee87a5a99dd8821104d9e 100644
--- a/tests/compiler/dart2js/kernel/closed_world2_test.dart
+++ b/tests/compiler/dart2js/kernel/closed_world2_test.dart
@@ -51,67 +51,6 @@ class Class2 extends Object with Mixin {
method1() {} // Deliberately the same name as the instance member in Mixin.
-class ClassWithCallBase {
- void call() {}
-}
-
-class ClassWithCallRequired {
- void call(int i) {}
-}
-
-class ClassWithCallGeneric<T> {
- void call(T t) {}
-}
-
-class ClassWithCallOptional<T> {
- void call([T t]) {}
-}
-
-class ClassWithCallNamed<T> {
- void call({T t}) {}
-}
-
-class ClassWithCallGetter {
- int get call => 0;
-}
-
-class ClassWithCallSetter {
- void set call(int i) {}
-}
-
-// Inherits the call type:
-class ClassWithCall1 extends ClassWithCallBase {}
-class ClassWithCall2 extends ClassWithCallRequired {}
-class ClassWithCall3 extends ClassWithCallGeneric<String> {}
-class ClassWithCall4 extends ClassWithCallOptional<String> {}
-class ClassWithCall5 extends ClassWithCallNamed<String> {}
-
-// Inherits the same call type twice:
-class ClassWithCall6 extends ClassWithCallRequired
- implements ClassWithCallGeneric<int> {}
-
-// Inherits different but compatible call types:
-class ClassWithCall7 extends ClassWithCallRequired
- implements ClassWithCallGeneric<String> {}
-class ClassWithCall8 extends ClassWithCallRequired
- implements ClassWithCallOptional<int> {}
-class ClassWithCall9 extends ClassWithCallRequired
- implements ClassWithCallOptional<String> {}
-class ClassWithCall10 extends ClassWithCallBase
- implements ClassWithCallNamed<String> {}
-
-// Inherits incompatible call types:
-class ClassWithCall11 extends ClassWithCallNamed<int>
- implements ClassWithCallOptional<int> {}
-class ClassWithCall12 extends ClassWithCallGetter {}
-class ClassWithCall13 extends ClassWithCallSetter {}
-class ClassWithCall14 extends ClassWithCallBase
- implements ClassWithCallGetter {}
-class ClassWithCall15 extends ClassWithCallBase
- implements ClassWithCallSetter {}
-
-class ClassImplementsFunction implements Function {}
-
@NoInline()
main() {
print('Hello World');
@@ -126,23 +65,6 @@ main() {
#main; // Use a const symbol.
const Symbol('foo'); // Use the const Symbol constructor directly
new Int8List(0); // Use redirect factory to abstract native class
-
- new ClassWithCall1();
- new ClassWithCall2();
- new ClassWithCall3();
- new ClassWithCall4();
- new ClassWithCall5();
- new ClassWithCall6();
- new ClassWithCall7();
- new ClassWithCall8();
- new ClassWithCall9();
- new ClassWithCall10();
- new ClassWithCall11();
- new ClassWithCall12();
- new ClassWithCall13();
- new ClassWithCall14();
- new ClassWithCall15();
- new ClassImplementsFunction();
}
'''
};
@@ -214,12 +136,7 @@ Future<ResultKind> mainInternal(List<String> args,
ElementEnvironment environment2 =
compiler2.frontendStrategy.elementEnvironment;
- checkElementEnvironment(
- environment1,
- environment2,
- compiler1.frontendStrategy.dartTypes,
- compiler2.frontendStrategy.dartTypes,
- strategy);
+ checkElementEnvironment(environment1, environment2, strategy);
ResolutionEnqueuer enqueuer2 = compiler2.enqueuer.resolution;
ClosedWorld closedWorld2 = compiler2.resolutionWorldBuilder.closeWorld();
« no previous file with comments | « tests/compiler/dart2js/equivalence/check_functions.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698