File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3918,8 +3918,8 @@ object Types {
3918
3918
&& {
3919
3919
val bs1 = new BinderPairs (this , that, bs)
3920
3920
// `paramInfos` and `resType` might still be uninstantiated at this point
3921
- // TODO: test remove null check
3922
- // paramInfos != null && resType != null &&
3921
+ // TODO:
3922
+ ( paramInfos : List [ TypeBounds ] | Null ) != null && ( resType : Type | Null ) != null &&
3923
3923
paramInfos.equalElements(that.paramInfos, bs1) &&
3924
3924
resType.equals(that.resType, bs1)
3925
3925
}
@@ -4518,10 +4518,10 @@ object Types {
4518
4518
def paramName : binder.ThisName = binder.paramNames(paramNum)
4519
4519
4520
4520
override def underlying (using Context ): Type = {
4521
- val infos = binder.paramInfos
4522
- // if (infos == null) NoType // this can happen if the referenced generic type is not initialized yet
4523
- // else infos(paramNum)
4524
- infos(paramNum)
4521
+ val infos : List [ Type ] | Null = binder.paramInfos
4522
+ // TODO
4523
+ if (infos == null ) NoType // this can happen if the referenced generic type is not initialized yet
4524
+ else infos(paramNum)
4525
4525
}
4526
4526
4527
4527
override def computeHash (bs : Binders | Null ): Int = doHash(paramNum, binder.identityHash(bs))
You can’t perform that action at this time.
0 commit comments