File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ trait TypeAssigner {
110110 }
111111 case tp : ThisType if toAvoid(tp.cls) =>
112112 range(tp.bottomType, apply(classBound(tp.cls.classInfo)))
113+ case tp : SkolemType if partsToAvoid(mutable.Set .empty, tp.info).nonEmpty =>
114+ range(tp.info.bottomType, apply(tp.info))
113115 case tp : TypeVar if ctx.typerState.constraint.contains(tp) =>
114116 val lo = ctx.typeComparer.instanceType(tp.origin, fromBelow = variance >= 0 )
115117 val lo1 = apply(lo)
Original file line number Diff line number Diff line change 1+ import reflect .ClassTag
2+
3+ object Demo {
4+ def the [T ](implicit ev : T ): ev.type = ev // More precise implicitly, needed to crash
5+
6+ {
7+ case class B (i : Int )
8+ the[ClassTag [B ]] // Has to be the last statement of the block
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments