diff options
author | Erik Osheim <d_m@plastic-idolatry.com> | 2012-05-14 01:01:31 -0400 |
---|---|---|
committer | Erik Osheim <d_m@plastic-idolatry.com> | 2012-05-14 01:01:31 -0400 |
commit | b6241963e61f1eaef1a53627197cc13afa0db234 (patch) | |
tree | ba0792051d74e52b0e586cb9bf336a6a4e398043 | |
parent | f7d5f45aa7d5b1977043aa169bf2cdb42f07a002 (diff) | |
download | scala-b6241963e61f1eaef1a53627197cc13afa0db234.tar.gz scala-b6241963e61f1eaef1a53627197cc13afa0db234.tar.bz2 scala-b6241963e61f1eaef1a53627197cc13afa0db234.zip |
Added test case for commit f7d5f45 (re SI-5552)
-rw-r--r-- | test/files/run/t5552.check | 2 | ||||
-rw-r--r-- | test/files/run/t5552.scala | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t5552.check b/test/files/run/t5552.check new file mode 100644 index 0000000000..a19a60840e --- /dev/null +++ b/test/files/run/t5552.check @@ -0,0 +1,2 @@ +(3,3) +(3.0,3.0) diff --git a/test/files/run/t5552.scala b/test/files/run/t5552.scala new file mode 100644 index 0000000000..afb8a1f0be --- /dev/null +++ b/test/files/run/t5552.scala @@ -0,0 +1,10 @@ +class C[@specialized(Int) A](a:A) { + lazy val b = (a, a) + def c = b +} +object Test { + def main(args:Array[String]) { + println(new C(3).c) + println(new C(3.0).c) + } +} |