File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
826826 * @param tp The type of the destination of the outer path.
827827 */
828828 def outerSelect (levels : Int , tp : Type )(implicit ctx : Context ): Tree =
829- untpd.Select (tree, OuterSelectName (EmptyTermName , levels)).withType(tp )
829+ untpd.Select (tree, OuterSelectName (EmptyTermName , levels)).withType(SkolemType (tp) )
830830
831831 // --- Higher order traversal methods -------------------------------
832832
Original file line number Diff line number Diff line change 1+ class D (x : Int ) {
2+ class DD {
3+ inline def apply () = new DD ()
4+ }
5+ val inner = new DD
6+ }
7+ object Test {
8+ new D (2 ).inner.apply()
9+ }
You can’t perform that action at this time.
0 commit comments