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

Unified Diff: tests/language/regress_24567_test.dart

Issue 1584223006: Remove signature classes from the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« runtime/vm/raw_object_snapshot.cc ('K') | « runtime/vm/symbols.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_24567_test.dart
diff --git a/tests/language/type_variable_closure3_test.dart b/tests/language/regress_24567_test.dart
similarity index 61%
copy from tests/language/type_variable_closure3_test.dart
copy to tests/language/regress_24567_test.dart
index ecb1c39e82ed81cc01dd061dca2b5070890f985b..e72750a7c0cfb37105d556557ed0f3bb2595f9c2 100644
--- a/tests/language/type_variable_closure3_test.dart
+++ b/tests/language/regress_24567_test.dart
@@ -3,16 +3,15 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import 'dart:math' as math;
-class A<T> {}
+class Random { }
-class C<T> {
- a() {
- return () => new A<T>();
- }
-}
+typedef F(Random r);
main() {
- Expect.isTrue(new C<int>().a()() is A<int>);
- Expect.isFalse(new C<int>().a()() is A<String>);
+ f(Random r) { }
+ g(math.Random r) { }
+ Expect.isTrue(f is F);
+ Expect.isFalse(g is F);
}
« runtime/vm/raw_object_snapshot.cc ('K') | « runtime/vm/symbols.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698