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

Unified Diff: pkg/front_end/testcases/inference/inferred_type_custom_binary_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_binary_op.dart
diff --git a/pkg/front_end/testcases/inference/inferred_type_custom_binary_op.dart b/pkg/front_end/testcases/inference/inferred_type_custom_binary_op.dart
index 54f73ec9a54377a91d97be047e2b1eb05149a610..e452f7541e4f92529975d134f5c170df74674ef8 100644
--- a/pkg/front_end/testcases/inference/inferred_type_custom_binary_op.dart
+++ b/pkg/front_end/testcases/inference/inferred_type_custom_binary_op.dart
@@ -9,5 +9,10 @@ class C {
bool operator *(C other) => true;
}
-C c;
+C c = new C();
var /*@topType=bool*/ x = c * c;
+
+main() {
+ c;
+ x;
+}

Powered by Google App Engine
This is Rietveld 408576698