File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4418,7 +4418,7 @@ object Types {
44184418 decls.toList.foldLeft(this ) { (cinfo, sym) =>
44194419 if sym.isOpaqueAlias then
44204420 cls.setFlag(Opaque )
4421- def force =
4421+ def force ( using Context ) =
44224422 if sym.isOpaqueAlias then // could have been reset because of a syntax error
44234423 sym.infoOrCompleter match
44244424 case completer : LazyType =>
@@ -4429,7 +4429,7 @@ object Types {
44294429 else defn.AnyType // dummy type in case of errors
44304430 def refineSelfType (selfType : Type ) =
44314431 RefinedType (selfType, sym.name,
4432- TypeAlias (LazyRef (_ => force, reportCycles = true )))
4432+ TypeAlias (LazyRef (force( using _) , reportCycles = true )))
44334433 cinfo.selfInfo match
44344434 case self : Type =>
44354435 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