diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-13 03:26:27 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-13 03:26:27 +0000 |
commit | 703bbdae73800e49d737e133e3a05929005294fc (patch) | |
tree | 72ffa7986fd9d9ad019609a7e02964d7ce530c2e /test/files/pos/bug4275.scala | |
parent | fe268d97789b518c7a3d08428f2577cc08b91ede (diff) | |
download | scala-703bbdae73800e49d737e133e3a05929005294fc.tar.gz scala-703bbdae73800e49d737e133e3a05929005294fc.tar.bz2 scala-703bbdae73800e49d737e133e3a05929005294fc.zip |
Test cases for #1071 and #4275 since I don't se...
Test cases for #1071 and #4275 since I don't see a lot of test cases,
hint hint, no review.
Diffstat (limited to 'test/files/pos/bug4275.scala')
-rw-r--r-- | test/files/pos/bug4275.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/bug4275.scala b/test/files/pos/bug4275.scala new file mode 100644 index 0000000000..1938aceadc --- /dev/null +++ b/test/files/pos/bug4275.scala @@ -0,0 +1,13 @@ +object Test { + def f = "abc".count(_ > 'a') + + class A { + private val count: Int = 0 + } + class B extends A { } + object B { + implicit def b2seq(x: B): Seq[Int] = Nil + + def f = (new B) count (_ > 0) + } +} |