You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
synthesizePartialFunction generates untyped untyped trees and calls the typer on them, so the originals are there.
Maybe we can catch isSynthetic of some symbol along the way before we get there. The $anonfun symbol is syntehtic. The applyOrElse / isDefinedAt are not.
The text was updated successfully, but these errors were encountered:
Scala 2.13.14
The AST is
In
A1 <: K
, theTypeTree
for<: K
has a non-nullorig
, so it passes here: https://github.com/scala/scala/blob/v2.13.14/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala#L1541-L1542.Same for the
K @unchecked
type trees.synthesizePartialFunction
generates untyped untyped trees and calls the typer on them, so the originals are there.Maybe we can catch
isSynthetic
of some symbol along the way before we get there. The$anonfun
symbol is syntehtic. TheapplyOrElse
/isDefinedAt
are not.The text was updated successfully, but these errors were encountered: