Skip to content

Commit 54b7aa5

Browse files
committed
Add a todo comment
1 parent a20aaf8 commit 54b7aa5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/core/Contexts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ object Contexts {
839839
gadt = EmptyGadtConstraint
840840
}
841841

842-
@sharable object NoContext extends Context(null.asInstanceOf) {
842+
@sharable object NoContext extends Context((null: ContextBase | Null).uncheckedNN) {
843843
source = NoSource
844844
override val implicits: ContextualImplicits = new ContextualImplicits(Nil, null, false)(this)
845845
}

compiler/src/dotty/tools/dotc/core/GadtConstraint.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ final class ProperGadtConstraint private(
107107
params.indexOf(tp.symbol) match {
108108
case -1 =>
109109
mapping(tp.symbol) match {
110+
// TODO: Improve flow typing so that ascription becomes redundant, see #11967
110111
case tv: TypeVar => tv.origin
111112
case null => tp
112113
}

0 commit comments

Comments
 (0)