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

Unified Diff: frog/leg/ssa/builder.dart

Issue 9310066: Generate a resolution error if a unary + is used for something other than numbers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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
Index: frog/leg/ssa/builder.dart
===================================================================
--- frog/leg/ssa/builder.dart (revision 3845)
+++ frog/leg/ssa/builder.dart (working copy)
@@ -682,6 +682,7 @@
void visitUnary(Send node, Operator op) {
assert(node.argumentsNode is Prefix);
visit(node.receiver);
+ if (op.source.stringValue == '+') return;
HInstruction operand = pop();
HInstruction target =
new HStatic(interceptors.getPrefixOperatorInterceptor(op));

Powered by Google App Engine
This is Rietveld 408576698