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

Unified Diff: pkg/analyzer/test/generated/non_error_resolver_test.dart

Issue 2469643003: Fix lookup of members (issue 27723) (Closed)
Patch Set: Created 4 years, 1 month 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/dart/element/element.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/generated/non_error_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
index f172ec6ed1146c987ca34851215464c1c1a2da44..067627dbd9b4f1e6c36fe99a2b1bd08448ff893f 100644
--- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
+++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
@@ -36,6 +36,28 @@ E e() {
verify([source]);
}
+ void
+ test_abstractSuperMemberReference_superHasConcrete_mixinHasAbstract_method() {
+ Source source = addSource('''
+class A {
+ void method() {}
+}
+
+abstract class B {
+ void method();
+}
+
+class C extends A with B {
+ void method() {
+ super.method();
+ }
+}
+''');
+ computeLibrarySourceErrors(source);
+ assertNoErrors(source);
+ verify([source]);
+ }
+
void test_abstractSuperMemberReference_superHasNoSuchMethod() {
Source source = addSource('''
abstract class A {
@@ -3718,22 +3740,22 @@ class B extends A {
verify([source]);
}
- void test_nativeFunctionBodyInNonSDKCode_function() {
+ void test_nativeConstConstructor() {
Source source = addSource(r'''
import 'dart-ext:x';
-int m(a) native 'string';''');
+class Foo {
+ const Foo() native 'Foo_Foo';
+ const factory Foo.foo() native 'Foo_Foo_foo';
+}''');
computeLibrarySourceErrors(source);
assertNoErrors(source);
// Cannot verify the AST because the import's URI cannot be resolved.
}
- void test_nativeConstConstructor() {
+ void test_nativeFunctionBodyInNonSDKCode_function() {
Source source = addSource(r'''
import 'dart-ext:x';
-class Foo {
- const Foo() native 'Foo_Foo';
- const factory Foo.foo() native 'Foo_Foo_foo';
-}''');
+int m(a) native 'string';''');
computeLibrarySourceErrors(source);
assertNoErrors(source);
// Cannot verify the AST because the import's URI cannot be resolved.
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698