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

Unified Diff: tests/language/src/ConstEscapeFrogTest.dart

Issue 8773021: Fixed escaping of const values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: safer escaping Created 9 years, 1 month 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
« frog/value.dart ('K') | « frog/value.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ConstEscapeFrogTest.dart
diff --git a/tests/language/src/ConstEscapeFrogTest.dart b/tests/language/src/ConstEscapeFrogTest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3e4574190a802478e43f1251506a22754a87cef8
--- /dev/null
+++ b/tests/language/src/ConstEscapeFrogTest.dart
@@ -0,0 +1,11 @@
+class Foo {
+ final Bar<Foo> bar = const Bar/* comment here use to trigger bug 323 */();
jimhug 2011/12/02 00:16:00 Minor TODO: Add some simple cases to this that wou
+}
+
+class Bar<T extends Foo> {
+ const Bar();
+}
+
+main() {
+ Expect.equals(new Foo().bar, const Bar());
+}
« frog/value.dart ('K') | « frog/value.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698