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

Unified Diff: pkg/front_end/testcases/inference/inferred_type_custom_unary_op.dart

Issue 2873813002: Implement type inference of method invocations in Fasta. (Closed)
Patch Set: Created 3 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
Index: pkg/front_end/testcases/inference/inferred_type_custom_unary_op.dart
diff --git a/pkg/front_end/testcases/inference/inferred_type_custom_unary_op.dart b/pkg/front_end/testcases/inference/inferred_type_custom_unary_op.dart
index a2562e6328280414299bbae88fd3b5fcda7ba97f..5c2c0b2d1e2543269246333a77a655d5f474c073 100644
--- a/pkg/front_end/testcases/inference/inferred_type_custom_unary_op.dart
+++ b/pkg/front_end/testcases/inference/inferred_type_custom_unary_op.dart
@@ -9,5 +9,10 @@ class C {
bool operator -() => true;
}
-C c;
+C c = new C();
var /*@topType=bool*/ x = -c;
+
+main() {
+ c;
+ x;
+}

Powered by Google App Engine
This is Rietveld 408576698