File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3635,6 +3635,9 @@ object Types {
3635
3635
if ann.refersToParamOf(thisLambdaType) then TrueDeps
3636
3636
else compute(status, parent, theAcc)
3637
3637
case _ : ThisType | _ : BoundType | NoPrefix => status
3638
+ case t : LazyRef =>
3639
+ if t.completed then compute(status, t.ref, theAcc)
3640
+ else Unknown
3638
3641
case _ =>
3639
3642
(if theAcc != null then theAcc else DepAcc ()).foldOver(status, tp)
3640
3643
compute(initial, tp, null )
Original file line number Diff line number Diff line change
1
+ trait Layouts :
2
+ type Layout <: {
3
+ def withName (name : String ): Layout
4
+ }
5
+ val l : Layout
6
+
7
+ val ls = new Layouts :
8
+ class Layout17 :
9
+ def withName (name : String ): Layout17 = this
10
+ type Layout = Layout17
11
+ val l = Layout17 ()
12
+
13
+ def test = ls.l
You can’t perform that action at this time.
0 commit comments