File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -293,8 +293,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object.
293
293
else toPrefix(sym.owner) + sym.name + " ."
294
294
def featureName = toPrefix(owner) + feature
295
295
def hasImport (implicit ctx : Context ): Boolean = {
296
- if (ctx.importInfo == null || (ctx.importInfo.site.widen.typeSymbol ne owner)) false
297
- else if (ctx.importInfo.excluded.contains(feature)) false
296
+ if (ctx.importInfo == null || ctx.importInfo.excluded.contains(feature)) false
298
297
else if (ctx.importInfo.originals.contains(feature)) true
299
298
else {
300
299
var c = ctx.outer
Original file line number Diff line number Diff line change
1
+ import scala .language .dynamics
2
+ import scala .Nil
3
+ class Foo () extends Dynamic
You can’t perform that action at this time.
0 commit comments