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

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

Issue 9719017: Fixed a few typos. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Include test Created 8 years, 9 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 | « dart/frog/leg/resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/src/ThisTest.dart
diff --git a/dart/tests/language/src/ThisTest.dart b/dart/tests/language/src/ThisTest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..df5a599be5f60d363cd88d996e746a76210fa0fa
--- /dev/null
+++ b/dart/tests/language/src/ThisTest.dart
@@ -0,0 +1,23 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+class Foo {
+ var x;
+ f() {}
+
+ testMe() {
ngeoffray 2012/03/17 16:22:42 How about this() ?
ahe 2012/03/17 16:32:57 I'll have to check up on the specification. I'm pr
+ x.this; /// 01: compile-time error
+ x.this(); /// 02: compile-time error
+ x.this.x; /// 03: compile-time error
+ x.this().x; /// 04: compile-time error
+ f().this; /// 05: compile-time error
+ f().this(); /// 06: compile-time error
+ f().this.f(); /// 07: compile-time error
+ f().this().f(); /// 08: compile-time error
+ }
+}
+
+main() {
+ new Foo().testMe();
+}
« no previous file with comments | « dart/frog/leg/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698