mirror of https://github.com/sbt/sbt.git
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:
parent
a58eff8f5a
commit
09bf5255ad
|
|
@ -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
|
||||
Loading…
Reference in New Issue