Skip to content

Instantly share code, notes, and snippets.

@ClaireNeveu
Last active August 29, 2015 14:04
Show Gist options
  • Save ClaireNeveu/1ea6b69d915cbf7df61a to your computer and use it in GitHub Desktop.
Save ClaireNeveu/1ea6b69d915cbf7df61a to your computer and use it in GitHub Desktop.
Scala 2.10.2 Bug
scalaVersion := "2.10.2"
package com.model
class Foo(val key: Long) extends AnyVal
object Bar {
def apply(l: Long): Bar = new Foo(l)
}
package com.test
import com.model.Bar
object Main extends App {
Array(1, 2, 3).map(s => Bar(s))
}
package com
package object model {
type Bar = Foo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment