diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-05 21:22:06 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-05 21:22:06 +0000 |
commit | f52458dfff38f9b50031f796d09ce02d370b9bd3 (patch) | |
tree | 9f5edd965f1ef09cd36e82982d6920b98a32d9f7 /test/files/pos | |
parent | 7804031bb3591a51d68a3a2bdeea69f2bacc3e5f (diff) | |
download | scala-f52458dfff38f9b50031f796d09ce02d370b9bd3.tar.gz scala-f52458dfff38f9b50031f796d09ce02d370b9bd3.tar.bz2 scala-f52458dfff38f9b50031f796d09ce02d370b9bd3.zip |
Test cases for some tickets fixed by recent arr...
Test cases for some tickets fixed by recent array and implicit activity:
#1038, #1005, #1272.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/bug1272.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/bug1272.scala b/test/files/pos/bug1272.scala new file mode 100644 index 0000000000..d86a909ae5 --- /dev/null +++ b/test/files/pos/bug1272.scala @@ -0,0 +1,9 @@ +object ImplicitTest { + implicit val i : Int = 10 + implicit def a(implicit i : Int) : Array[Byte] = null + implicit def b[T](implicit i : Int) : Array[T] = null + + def fn[T](implicit x : T) = 0 + + val x = fn[Array[Byte]] +}
\ No newline at end of file |