Skip to content

Commit 96c91da

Browse files
i10416bishabosha
andauthored
Apply suggestions from code review
Test imported type as well as fully-qualified type to check `findRef` codepath. Co-authored-by: Jamie Thompson <[email protected]>
1 parent cbfdf57 commit 96c91da

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/run/i17255/J.java

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ public class J {
55
public static p.J f() {
66
return p.J.j;
77
}
8+
public static Module$ module2() {
9+
return p.Module$.MODULE$;
10+
}
811
public static p.Module$ module() {
912
return p.Module$.MODULE$;
1013
}

tests/run/i17255/Module.scala

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ package p {
99
object Test extends App {
1010
assert(p.J.f().toString == "J")
1111
assert(p.J.module().toString == "Module")
12+
assert(p.J.module2().toString == "Module")
1213
}

0 commit comments

Comments
 (0)