Last active
August 29, 2015 14:04
-
-
Save ClaireNeveu/1ea6b69d915cbf7df61a to your computer and use it in GitHub Desktop.
Scala 2.10.2 Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scalaVersion := "2.10.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.model | |
class Foo(val key: Long) extends AnyVal | |
object Bar { | |
def apply(l: Long): Bar = new Foo(l) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test | |
import com.model.Bar | |
object Main extends App { | |
Array(1, 2, 3).map(s => Bar(s)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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