scala - Types in a package object -
perhaps i'm missing obvious, but:
package.scala
package heptic package object proj { case class jesus(axes: int) def foo: jesus = jesus(44) }
gives compilation error:
found : heptic.proj.jesus required: heptic.proj.package.jesus def foo: jesus = jesus(44) ^
which doesn't seem make enormous amount of sense (especially when type inference crashes compiler (latest, 2.10.1))
sbt clean
such errors.
there class jesus
compiled , not deleted. guess have moved jesus
package
package object
, both of them.
Comments
Post a Comment