| 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 16d5494e336e81adeb56e184539705dd0faae9da..24150f5b5ece9a95fc7b64265883c31d86fd10be 100644
|
| --- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| @@ -3385,6 +3385,52 @@ class A {
|
| verify([source]);
|
| }
|
|
|
| + void test_parameterScope_local() {
|
| + // Parameter names shouldn't conflict with the name of the function they
|
| + // are enclosed in.
|
| + Source source = addSource(r'''
|
| +f() {
|
| + g(g) {
|
| + h(g);
|
| + }
|
| +}
|
| +h(x) {}
|
| +''');
|
| + resolve(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| + void test_parameterScope_method() {
|
| + // Parameter names shouldn't conflict with the name of the function they
|
| + // are enclosed in.
|
| + Source source = addSource(r'''
|
| +class C {
|
| + g(g) {
|
| + h(g);
|
| + }
|
| +}
|
| +h(x) {}
|
| +''');
|
| + resolve(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| + void test_parameterScope_toplevel() {
|
| + // Parameter names shouldn't conflict with the name of the function they
|
| + // are enclosed in.
|
| + Source source = addSource(r'''
|
| +g(g) {
|
| + h(g);
|
| +}
|
| +h(x) {}
|
| +''');
|
| + resolve(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_prefixCollidesWithTopLevelMembers() {
|
| addNamedSource("/lib.dart", r'''
|
| library lib;
|
|
|