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

Unified Diff: pkg/analyzer/test/src/summary/summary_common.dart

Issue 1839863005: Clean up trivial cycle detection logic. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index e961d784e75eea54eda54797e2bd70a26a2e66e3..c690ab83d24bd3b7c7df332bfe7c2ee8d40045dc 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -4148,6 +4148,17 @@ class C {
checkConstCycle('C', hasCycle: false);
}
+ test_constructorCycle_trivial() {
+ serializeLibraryText(
+ '''
+class C {
+ const C() : this();
+}
+''',
+ allowErrors: true);
+ checkConstCycle('C');
+ }
+
test_constructorCycle_viaFactoryRedirect() {
serializeLibraryText(
'''
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698