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 c1eaf8c + 070b863 commit d26549dCopy full SHA for d26549d
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -1000,6 +1000,8 @@ class Namer { typer: Typer =>
1000
) match
1001
case Some(other) => No(i"overrides ${other.showLocated}, which is already a member of $cls")
1002
case None => Yes
1003
+ else if sym.isAllOf(JavaModule) then
1004
+ Skip
1005
else Yes
1006
}
1007
tests/neg/12249.scala
@@ -0,0 +1,9 @@
1
+
2
+export java.util.UUID
3
4
+def bar = println(new UUID(1, 2)) // OK
5
6
+def foo = println(UUID.randomUUID()) // error
7
+// ^^^^
8
+// Not found: UUID
9
0 commit comments