Skip to content

Commit 3fa7506

Browse files
authored
Fixes #3363. Hide extensions when import is deferred (#3365)
1 parent 22ecbe8 commit 3fa7506

10 files changed

+12
-5
lines changed

LanguageFeatures/Parts-with-imports/resolving_extensions_A01_t01.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// @description Check that an extension declared in a part file is available in
1818
/// its parent file and vice versa.
1919
/// @author [email protected]
20+
/// @issue 61804
2021
2122
// SharedOptions=--enable-experiment=enhanced-parts
2223

LanguageFeatures/Parts-with-imports/resolving_extensions_A01_t01_part1.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// @description Check that an extension declared in a part file is available in
1818
/// its parent file and vice versa.
1919
/// @author [email protected]
20+
/// @issue 61804
2021
2122
// SharedOptions=--enable-experiment=enhanced-parts
2223

LanguageFeatures/Parts-with-imports/resolving_extensions_A01_t01_part2.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// @description Check that an extension declared in a part file is available in
1818
/// its parent file and vice versa.
1919
/// @author [email protected]
20+
/// @issue 61804
2021
2122
// SharedOptions=--enable-experiment=enhanced-parts
2223

LanguageFeatures/Parts-with-imports/resolving_extensions_A01_t03.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// @description Check that an extension available by import in a part file is
1818
/// available in its parts but not available in the parent.
1919
/// @author [email protected]
20+
/// @issue 61805
2021
2122
// SharedOptions=--enable-experiment=enhanced-parts
2223

LanguageFeatures/Parts-with-imports/resolving_extensions_A01_t03_part1.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// @description Check that an extension available by import in a part file is
1818
/// available in its parts.
1919
/// @author [email protected]
20+
/// @issue 61805
2021
2122
// SharedOptions=--enable-experiment=enhanced-parts
2223

LanguageFeatures/Parts-with-imports/resolving_extensions_A01_t03_part2.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// @description Check that an extension available by import in a part file is
1818
/// available in its parts.
1919
/// @author [email protected]
20+
/// @issue 61805
2021
2122
// SharedOptions=--enable-experiment=enhanced-parts
2223

LanguageFeatures/Parts-with-imports/scope_A06_t02.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/// @description Check that a part file can use the same deferred import prefix
2323
/// as a prefix that it inherits. In this case it shadows inherited declarations
2424
/// @author [email protected]
25+
/// @issue 61806
2526
2627
// SharedOptions=--enable-experiment=enhanced-parts
2728

LanguageFeatures/Parts-with-imports/scope_A06_t02_part1.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
/// @description Check that a part file can use the same deferred import prefix
2323
/// as a prefix that it inherits. In this case it shadows inherited declarations
2424
/// @author [email protected]
25+
/// @issue 61806
2526
2627
// SharedOptions=--enable-experiment=enhanced-parts
2728

2829
part of 'scope_A06_t02.dart';
2930

30-
import 'parts_lib.dart' deferred as l;
31+
import 'parts_lib.dart' deferred as l hide LibExt;
3132

3233
part 'scope_A06_t02_part2.dart';
3334

@@ -42,6 +43,5 @@ testPart1() async {
4243
Expect.equals("LibClass", l.LibClass.id);
4344
Expect.equals("LibMixin", l.LibMixin.id);
4445
Expect.equals("LibEnum", l.LibEnum.id);
45-
Expect.equals("LibExt", l.LibExt.id);
4646
Expect.equals("LibET", l.LibET.id);
4747
}

LanguageFeatures/Parts-with-imports/scope_A06_t02_part2.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
/// @description Check that a part file can use the same deferred import prefix
2323
/// as a prefix that it inherits. In this case it shadows inherited declarations
2424
/// @author [email protected]
25+
/// @issue 61806
2526
2627
// SharedOptions=--enable-experiment=enhanced-parts
2728

2829
part of 'scope_A06_t02_part1.dart';
2930

30-
import 'scope_lib1.dart' deferred as l;
31+
import 'scope_lib1.dart' deferred as l hide LibExt;
3132

3233
testPart2() async {
3334
await l.loadLibrary();
@@ -40,7 +41,6 @@ testPart2() async {
4041
Expect.equals("scope_lib1 LibClass", l.LibClass.id);
4142
Expect.equals("scope_lib1 LibMixin", l.LibMixin.id);
4243
Expect.equals("scope_lib1 LibEnum", l.LibEnum.id);
43-
Expect.equals("scope_lib1 LibExt", l.LibExt.id);
4444
Expect.equals("scope_lib1 LibET", l.LibET.id);
4545
// From parts_lib.dart
4646
Expect.equals(0, l.counter);

LanguageFeatures/Parts-with-imports/scope_A06_t03_part2.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
part of 'scope_A06_t03_part1.dart';
2929

30-
import 'scope_lib1.dart' deferred as l;
30+
import 'scope_lib1.dart' deferred as l hide LibExt;
3131

3232
testPart2() async {
3333
// From scope_lib1.dart

0 commit comments

Comments
 (0)