File tree Expand file tree Collapse file tree 3 files changed +29
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -1464,8 +1464,9 @@ trait Checking {
14641464 report.error(ImportRenamedTwice (sel.imported), sel.imported.srcPos)
14651465 seen += sel.name
14661466
1467- for sel <- selectors do
1468- if ! sel.isWildcard then checkIdent(sel)
1467+ if ! ctx.compilationUnit.isJava then
1468+ for sel <- selectors do
1469+ if ! sel.isWildcard then checkIdent(sel)
14691470 end checkImportSelectors
14701471}
14711472
Original file line number Diff line number Diff line change 1+ package bar
2+
3+ trait MDCAdapter
4+
5+ object ScalaMDCAdapter extends MDCAdapter {
6+ }
Original file line number Diff line number Diff line change 1+ package foo ;
2+
3+ import bar .MDCAdapter ;
4+ import bar .ScalaMDCAdapter ;
5+ import bar .ScalaMDCAdapter$ ;
6+
7+ public class JavaMDCBinder {
8+ public static final JavaMDCBinder SINGLETON = new JavaMDCBinder ();
9+
10+ private JavaMDCBinder () {
11+ }
12+
13+ public MDCAdapter getMDCA () {
14+ return ScalaMDCAdapter$ .MODULE$ ;
15+ }
16+
17+ public String getMDCAdapterClassStr () {
18+ return ScalaMDCAdapter .class .getName ();
19+ }
20+ }
You can’t perform that action at this time.
0 commit comments