File tree 2 files changed +2
-9
lines changed
compiler/src/dotty/tools/dotc 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,6 @@ object desugar {
23
23
import untpd ._
24
24
import DesugarEnums ._
25
25
26
- /** If a Select node carries this attachment, suppress the check
27
- * that its type refers to an acessible symbol.
28
- */
29
- val SuppressAccessCheck : Property .Key [Unit ] = Property .Key ()
30
-
31
26
/** An attachment for companion modules of classes that have a `derives` clause.
32
27
* The position value indicates the start position of the template of the
33
28
* deriving class.
Original file line number Diff line number Diff line change @@ -173,11 +173,9 @@ trait TypeAssigner {
173
173
/** The type of the selection in `tree`, where `qual1` is the typed qualifier part.
174
174
* The selection type is additionally checked for accessibility.
175
175
*/
176
- def accessibleSelectionType (tree : untpd.RefTree , qual1 : Tree )(using Context ): Type = {
176
+ def accessibleSelectionType (tree : untpd.RefTree , qual1 : Tree )(using Context ): Type =
177
177
val ownType = selectionType(tree, qual1)
178
- if (tree.hasAttachment(desugar.SuppressAccessCheck )) ownType
179
- else ensureAccessible(ownType, qual1.isInstanceOf [Super ], tree.srcPos)
180
- }
178
+ ensureAccessible(ownType, qual1.isInstanceOf [Super ], tree.srcPos)
181
179
182
180
/** Type assignment method. Each method takes as parameters
183
181
* - an untpd.Tree to which it assigns a type,
You can’t perform that action at this time.
0 commit comments