File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,6 @@ class InterceptedMethods extends MiniPhase {
44
44
45
45
override def phaseName : String = InterceptedMethods .name
46
46
47
- private [this ] var scalaValueClasses : scala.collection.Set [Symbol ] = _
48
-
49
- /** perform context-dependant initialization */
50
- override def prepareForUnit (tree : Tree )(implicit ctx : Context ) = {
51
- scalaValueClasses = defn.ScalaValueClasses ()
52
- ctx
53
- }
54
-
55
47
// this should be removed if we have guarantee that ## will get Apply node
56
48
override def transformSelect (tree : tpd.Select )(implicit ctx : Context ): Tree = {
57
49
if (tree.symbol.isTerm && (defn.Any_## eq tree.symbol.asTerm)) {
@@ -105,7 +97,7 @@ class InterceptedMethods extends MiniPhase {
105
97
List(qual, typer.resolveClassTag(tree.pos, qual.tpe.widen))))
106
98
}*/
107
99
*/
108
- case t if t.name == nme.getClass_ && scalaValueClasses .contains(t.owner) =>
100
+ case t if t.name == nme.getClass_ && defn. ScalaValueClasses () .contains(t.owner) =>
109
101
// if we got here then we're trying to send a primitive getClass method to either
110
102
// a) an Any, in which cage Object_getClass works because Any erases to object. Or
111
103
//
You can’t perform that action at this time.
0 commit comments