File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ object Flags {
531531 val RetainedModuleClassFlags : FlagSet = RetainedModuleValAndClassFlags | Enum
532532
533533 /** Flags retained in export forwarders */
534- val RetainedExportFlags = Given | Implicit | Inline
534+ val RetainedExportFlags = Given | Implicit | Inline | Transparent
535535
536536 /** Flags that apply only to classes */
537537 val ClassOnlyFlags = Sealed | Open | Abstract .toTypeFlags
Original file line number Diff line number Diff line change 1+ import scala .quoted .*
2+
3+ package mylib:
4+ object Export :
5+ transparent inline def exported : Any = 1
6+
7+ object Import :
8+ transparent inline def imported : Any = 1
9+
10+ export Export .*
11+
12+
13+ import mylib .*
14+ import Import .*
15+ object Test :
16+ val oneFail : 1 = exported // error
17+ val oneWork : 1 = imported // works
You can’t perform that action at this time.
0 commit comments