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

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

Issue 2832893002: Issue 29398. Infer instance members using InheritanceManager of the ClassElement. (Closed)
Patch Set: Created 3 years, 8 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/task/strong_mode.dart ('k') | pkg/analyzer/test/src/task/strong_mode_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/top_level_inference_test.dart
diff --git a/pkg/analyzer/test/src/summary/top_level_inference_test.dart b/pkg/analyzer/test/src/summary/top_level_inference_test.dart
index 9ae0ad563ca290b6e8eeab521c1e1a6e84bc8da0..c0ef180e6040876798a7b3ebc5dc8c894435cb67 100644
--- a/pkg/analyzer/test/src/summary/top_level_inference_test.dart
+++ b/pkg/analyzer/test/src/summary/top_level_inference_test.dart
@@ -2667,6 +2667,36 @@ class C implements B<int, String> {
''');
}
+ test_method_OK_single_private_linkThroughOtherLibraryOfCycle() async {
+ String path = _p('/other.dart');
+ provider.newFile(
+ path,
+ r'''
+import 'test.dart';
+class B extends A2 {}
+''');
+ var library = await _encodeDecodeLibrary(r'''
+import 'other.dart';
+class A1 {
+ int _foo() => 1;
+}
+class A2 extends A1 {
+ _foo() => 2;
+}
+''');
+ checkElementText(
+ library,
+ r'''
+import 'other.dart';
+class A1 {
+ int _foo() {}
+}
+class A2 extends A1 {
+ int _foo() {}
+}
+''');
+ }
+
test_method_OK_single_withExtends_notGeneric() async {
var library = await _encodeDecodeLibrary(r'''
class A {
« no previous file with comments | « pkg/analyzer/lib/src/task/strong_mode.dart ('k') | pkg/analyzer/test/src/task/strong_mode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698