File tree 3 files changed +13
-1
lines changed
scaladoc-testcases/src/tests
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ package lookupInheritedMembers {
15
15
* [[tests.lookupInheritedMembers.pack2.B.x ]]
16
16
* [[tests.lookupInheritedMembers.pack2.B.y ]]
17
17
* [[tests.lookupInheritedMembers.pack2.B.MyType ]]
18
+ *
18
19
*/
19
20
class LookupInheritedMembers
21
+
22
+ /**
23
+ * This look up is problematic, because is lazyloaded by dotty.
24
+ *
25
+ * [[java.util.Formatter ]]
26
+ */
27
+ class JavaInheritedMembers
20
28
}
29
+
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ trait MemberLookup {
108
108
given dotc .core.Contexts .Context = quotes.asInstanceOf [scala.quoted.runtime.impl.QuotesImpl ].ctx
109
109
val sym = rsym.asInstanceOf [dotc.core.Symbols .Symbol ]
110
110
// note: Predef has .info = NoType for some reason
111
- sym.isCompleted && sym.info.exists
111
+ ( sym.isCompleted && sym.info.exists) || sym.infoOrCompleter. isInstanceOf [dotty.tools.dotc.core. ClassfileLoader ]
112
112
}
113
113
114
114
private def localLookup (using Quotes )(
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ class LookupTestCases[Q <: Quotes](val q: Quotes) {
38
38
39
39
" java.util.AbstractCollection" -> cls(" java.util.AbstractCollection" ),
40
40
" java.lang.String" -> cls(" java.lang.String" ),
41
+ " java.util.Formatter" -> cls(" java.util.Formatter" ),
42
+ " java.io.Flushable" -> cls(" java.io.Flushable" ),
43
+ " java.util.List" -> cls(" java.util.List" ),
41
44
42
45
" tests.lookupInheritedMembers.pack1.A.x" ->
43
46
cls(" tests.lookupInheritedMembers.pack1.A" ).fun(" x" ),
You can’t perform that action at this time.
0 commit comments