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

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: sync 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
« no previous file with comments | « tests/compiler/dart2js/analyze_test_test.dart ('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/conflicting_type_variable_and_setter_test.dart b/tests/language/regress_24567_test.dart
similarity index 62%
copy from tests/language/conflicting_type_variable_and_setter_test.dart
copy to tests/language/regress_24567_test.dart
index 2aca0c32b659b1f1f213c4744ab50c6753befbbc..e72750a7c0cfb37105d556557ed0f3bb2595f9c2 100644
--- a/tests/language/conflicting_type_variable_and_setter_test.dart
+++ b/tests/language/regress_24567_test.dart
@@ -3,17 +3,15 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import 'dart:math' as math;
-class C<D> {
- void set D(int value) {
- field = value;
- }
+class Random { }
- int field;
-}
+typedef F(Random r);
main() {
- C<int> c = new C<int>();
- c.D = 1;
- Expect.equals(c.field, 1);
+ f(Random r) { }
+ g(math.Random r) { }
+ Expect.isTrue(f is F);
+ Expect.isFalse(g is F);
}
« no previous file with comments | « tests/compiler/dart2js/analyze_test_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698