Closed
Description
Given this program
class A
class a
object Test {
def main(args: Array[String]): Unit = {
new a
new A
}
}
scalac issues this warning:
pos.scala:2: warning: Class a differs only in case from A. Such classes will overwrite one another on case-insensitive filesystems.
class a
^
I think dotc should do the same. Also affects pending/run/t920.scala
which has a similar problem involving class/object on MacOS and Windows.