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:
Martin Duhem 2016-02-03 14:49:59 +01:00
parent a58eff8f5a
commit 09bf5255ad
4 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,3 @@
package b
class A

View File

@ -0,0 +1 @@
package object b extends A

View File

@ -0,0 +1,5 @@
package b
class A {
def foo = 1
}

View File

@ -0,0 +1,3 @@
> compile
$ copy-file changes/A1.scala A.scala
> compile