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

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 1151063003: Allow this?.foo (again) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 1bd64f232b073b3fa36cadc1d227bba1cb1d5521..6b34348c1db538301f64b70c243e631ab1f9352f 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -800,11 +800,6 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
compiler.reportError(node, MessageKind.NO_THIS_AVAILABLE);
return false;
}
- if (node.isConditional) {
- // `this?.foo` is not allowed.
- compiler.reportError(node, MessageKind.INVALID_USE_OF_THIS);
- return false;
- }
return true;
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698