File tree 2 files changed +12
-0
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ trait TypeAssigner {
110
110
}
111
111
case tp : ThisType if toAvoid(tp.cls) =>
112
112
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))
113
115
case tp : TypeVar if ctx.typerState.constraint.contains(tp) =>
114
116
val lo = ctx.typeComparer.instanceType(tp.origin, fromBelow = variance >= 0 )
115
117
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