Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions compiler/src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@ object Types {
private[Types] var opened: Boolean = false
private[Types] var openedTwice: Boolean = false

val parent: Type = parentExp(this)
val parent: Type = parentExp(this: @unchecked)

private var myRecThis: RecThis | Null = null

Expand Down Expand Up @@ -3705,8 +3705,8 @@ object Types {

type This = MethodType

val paramInfos: List[Type] = paramInfosExp(this)
val resType: Type = resultTypeExp(this)
val paramInfos: List[Type] = paramInfosExp(this: @unchecked)
val resType: Type = resultTypeExp(this: @unchecked)
assert(resType.exists)

def companion: MethodTypeCompanion
Expand Down Expand Up @@ -3879,8 +3879,8 @@ object Types {
type This = HKTypeLambda
def companion: HKTypeLambda.type = HKTypeLambda

val paramInfos: List[TypeBounds] = paramInfosExp(this)
val resType: Type = resultTypeExp(this)
val paramInfos: List[TypeBounds] = paramInfosExp(this: @unchecked)
val resType: Type = resultTypeExp(this: @unchecked)

private def setVariances(tparams: List[LambdaParam], vs: List[Variance]): Unit =
if tparams.nonEmpty then
Expand Down Expand Up @@ -3948,8 +3948,8 @@ object Types {
type This = PolyType
def companion: PolyType.type = PolyType

val paramInfos: List[TypeBounds] = paramInfosExp(this)
val resType: Type = resultTypeExp(this)
val paramInfos: List[TypeBounds] = paramInfosExp(this: @unchecked)
val resType: Type = resultTypeExp(this: @unchecked)

assert(resType.isInstanceOf[TermType], this)
assert(paramNames.nonEmpty)
Expand Down