Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Created February 12, 2013 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuwei-k/4770890 to your computer and use it in GitHub Desktop.
Save xuwei-k/4770890 to your computer and use it in GitHub Desktop.
repl.scala error: constructor A in class A cannot be accessed in object REPL2
A(1)
^
one error found
object REPL1{
case class A private(i:Int)
object REPL2{
A(1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment