File tree 2 files changed +8
-0
lines changed
compiler/src/dotty/tools/dotc/transform
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,9 @@ class ElimByName extends MiniPhaseTransform with InfoTransformer { thisTransform
112
112
override def transformIdent (tree : Ident )(implicit ctx : Context , info : TransformerInfo ): Tree =
113
113
applyIfFunction(tree, tree)
114
114
115
+ override def transformSelect (tree : Select )(implicit ctx : Context , info : TransformerInfo ): Tree =
116
+ applyIfFunction(tree, tree)
117
+
115
118
override def transformTypeApply (tree : TypeApply )(implicit ctx : Context , info : TransformerInfo ): Tree = tree match {
116
119
case TypeApply (Select (_, nme.asInstanceOf_), arg :: Nil ) =>
117
120
// tree might be of form e.asInstanceOf[x.type] where x becomes a function.
Original file line number Diff line number Diff line change
1
+ class Fill (elem : => Int ) {
2
+ class Iter {
3
+ def next (): Int = elem
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments