We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bba1db8 commit 4b75df5Copy full SHA for 4b75df5
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -3808,8 +3808,7 @@ class Typer extends Namer
3808
mapOver(tp)
3809
}
3810
3811
- if tree.symbol.isOneOf(Module | Enum)
3812
- && !(tree.tpe frozen_<:< pt) // fast track
+ if !(tree.tpe frozen_<:< pt) // fast track
3813
&& !(tree.tpe frozen_<:< approx(pt))
3814
then
3815
// We could check whether `equals` is overriden.
0 commit comments