mirror of
https://github.com/sbt/sbt.git
synced 2026-09-02 11:07:30 +02:00
Pending test for recompilation of package object
The convention says to place package objects in files named `package.scala`, but this is not enforced by the scala specification. The incremental compiler currently offers special treatment for files whose name is `package.scala`, but it should rather care about whether a file defines a package object or not. This test fails because it defines a package object in a file whose name is not `package.scala`.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package b
|
||||
|
||||
class A
|
||||
@@ -0,0 +1 @@
|
||||
package object b extends A
|
||||
@@ -0,0 +1,5 @@
|
||||
package b
|
||||
|
||||
class A {
|
||||
def foo = 1
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
> compile
|
||||
$ copy-file changes/A1.scala A.scala
|
||||
> compile
|
||||
Reference in New Issue
Block a user