Skip to content

Instantly share code, notes, and snippets.

@VladUreche
Last active August 29, 2015 13:57
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 VladUreche/9515043 to your computer and use it in GitHub Desktop.
Save VladUreche/9515043 to your computer and use it in GitHub Desktop.
$ ls
A.scala B.scala
$ cat A.scala
class A[@specialized T](t: T)
$ scalac A.scala
$ cat B.scala
object Test extends App {
println((new A(3)).getClass)
}
$ scalac B.scala
$ scala Test
class A$mcI$sp
$ scalac B.scala -no-specialization
$ scala Test
class A
$ rm A\$*.class
$ ls
A.class A.scala B.scala Test.class Test$.class Test$delayedInit$body.class
$ scala Test
class A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment