File tree 2 files changed +7
-2
lines changed
compiler/src/dotty/tools/dotc/core 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4418,7 +4418,7 @@ object Types {
4418
4418
decls.toList.foldLeft(this ) { (cinfo, sym) =>
4419
4419
if sym.isOpaqueAlias then
4420
4420
cls.setFlag(Opaque )
4421
- def force =
4421
+ def force ( using Context ) =
4422
4422
if sym.isOpaqueAlias then // could have been reset because of a syntax error
4423
4423
sym.infoOrCompleter match
4424
4424
case completer : LazyType =>
@@ -4429,7 +4429,7 @@ object Types {
4429
4429
else defn.AnyType // dummy type in case of errors
4430
4430
def refineSelfType (selfType : Type ) =
4431
4431
RefinedType (selfType, sym.name,
4432
- TypeAlias (LazyRef (_ => force, reportCycles = true )))
4432
+ TypeAlias (LazyRef (force( using _) , reportCycles = true )))
4433
4433
cinfo.selfInfo match
4434
4434
case self : Type =>
4435
4435
cinfo.derivedClassInfo(
Original file line number Diff line number Diff line change
1
+ object i9202 {
2
+ opaque type SomeUnrelatedOpaque = Int
3
+ class A [T ](val d : T )
4
+ extension Ex2SameNameToBeToImport on [T ] (x : A [T ]) { def value : T = x.d }
5
+ }
You can’t perform that action at this time.
0 commit comments