You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[warn] -- Warning: /Users/jiahuitan/sbt-zinc-compilation-bug/src/main/scala/Foo.scala:1:6
[warn] 1 |trait Foo {
[warn] | ^
[warn] | trait Foo and object Foo produce classes that overwrite one another
[warn] one warning found
(Trait Foo, Object Foo are declared in different source file)
The fact that compilation succeeds is causing an infinite compilation bug in Zinc (sbt/zinc#1187).
Friendseeker
changed the title
Raise class file collision as compiler error instead of warning
Flag class file collision as compiler error instead of warning
Dec 11, 2023
Friendseeker
changed the title
Flag class file collision as compiler error instead of warning
class file collision is flagged as warning instead of error
Dec 11, 2023
Friendseeker
changed the title
class file collision is flagged as warning instead of error
Class file collision is flagged as warning instead of error
Dec 11, 2023
Issue
For the following compiler warning
(
Trait Foo
,Object Foo
are declared in different source file)The fact that compilation succeeds is causing an infinite compilation bug in Zinc (sbt/zinc#1187).
Expected
Scala 2 throws error for such class file collision. Would it be possible for Dotty to have same behaviour as Scala 2 compiler?
The text was updated successfully, but these errors were encountered: