package.scala contains union type