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 {
826
826
* @param tp The type of the destination of the outer path.
827
827
*/
828
828
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) )
830
830
831
831
// --- Higher order traversal methods -------------------------------
832
832
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