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

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

Issue 1836033002: Fix a corner case of building summaries from ASTs. (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 bd6b3cd922f178d596c655ddd096369ad082b7fe..a0eb33433eb31df08a4d67979066535230ddf428 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -4002,6 +4002,19 @@ class C<T> {
checkConstCycle('C', hasCycle: false);
}
+ test_constructorCycle_referenceToGenericParameter_asSupertype() {
+ // It's not valid Dart but we need to make sure it doesn't crash
+ // summary generation.
+ serializeLibraryText(
+ '''
+class C<T> extends T {
+ const C();
+}
+''',
+ allowErrors: true);
+ checkConstCycle('C', hasCycle: false);
+ }
+
test_constructorCycle_referenceToStaticMethod_inOtherClass() {
serializeLibraryText('''
class C {
« 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