We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8bcd9a9 + 784abfb commit f24960cCopy full SHA for f24960c
compiler/src/dotty/tools/dotc/typer/Nullables.scala
@@ -283,7 +283,7 @@ object Nullables:
283
*/
284
def usedOutOfOrder(using Context): Boolean =
285
val refSym = ref.symbol
286
- val refOwner = refSym.owner
+ val refOwner = refSym.maybeOwner
287
288
@tailrec def recur(s: Symbol): Boolean =
289
s != NoSymbol
tests/explicit-nulls/pos/i19808.scala
@@ -0,0 +1,6 @@
1
+import scala.reflect.Selectable.reflectiveSelectable
2
+
3
+def saveRedir(what: {def validate: List[String]}) =
4
+ what.validate match
5
+ case Nil => ???
6
+ case xs => ???
tests/pos/i19808.scala
0 commit comments