File tree 2 files changed +2
-0
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -818,6 +818,7 @@ trait Checking {
818
818
def checkImplicitConversionUseOK (tree : Tree )(using Context ): Unit =
819
819
val tree1 = if Nullables .unsafeNullsEnabled then
820
820
// If unsafeNulls is enabled, a cast and a closure could be added to the original tree
821
+ // !!! TODO: We need a test for that. Right now everything passes even if this case is commented out.
821
822
stripCast(closureBody(tree))
822
823
else tree
823
824
val sym = tree1.symbol
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ object ErrorReporting {
161
161
case fail : Implicits .NoMatchingImplicits => // do nothing
162
162
case _ => attempts += ((failure.tree, " " ))
163
163
if foundWithoutNull then
164
+ // !!! TODO: The need a test that tests this error message with a check file
164
165
i """ .
165
166
|Since explicit-nulls is enabled, the selection is rejected because
166
167
| ${qualType.widen} could be null at runtime.
You can’t perform that action at this time.
0 commit comments