Skip to content

Commit

Permalink
Added test case for commit f7d5f45 (re SI-5552)
Browse files Browse the repository at this point in the history
  • Loading branch information
non committed May 14, 2012
1 parent f7d5f45 commit b624196
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/files/run/t5552.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(3,3)
(3.0,3.0)
10 changes: 10 additions & 0 deletions test/files/run/t5552.scala
Original file line number Diff line number Diff line change
@@ -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)
}
}

0 comments on commit b624196

Please sign in to comment.