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.
2 parents acbc9aa + 6e64a9b commit 716d93dCopy full SHA for 716d93d
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1074,6 +1074,7 @@ object SymDenotations {
1074
case tp: Symbol => sourceOfSelf(tp.info)
1075
case tp: RefinedType => sourceOfSelf(tp.parent)
1076
case tp: AnnotatedType => sourceOfSelf(tp.parent)
1077
+ case tp: ThisType => tp.cls
1078
}
1079
sourceOfSelf(selfType)
1080
case info: LazyType =>
tests/pos/i16437/def_1.scala
@@ -0,0 +1,9 @@
1
+class OU {
2
+ def dn: String = ""
3
+}
4
+
5
+class Inventory() {
6
+ object NODES extends OU { nodes =>
7
+ val x = nodes.dn
8
+ }
9
tests/pos/i16437/use_2.scala
@@ -0,0 +1,2 @@
+@main def Test =
+ new Inventory().NODES.dn
0 commit comments