summaryrefslogtreecommitdiff
path: root/test/files/pos/ticket2201.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2009-09-11 10:34:02 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2009-09-11 10:34:02 +0000
commit57ed4ca11459b48f2310c81beef1d31476494d25 (patch)
treef310b1456553557c67a6baae9b7d095436a6a144 /test/files/pos/ticket2201.scala
parent10cf73815b04d3d3d214adc1d5176daa81916e8f (diff)
downloadscala-57ed4ca11459b48f2310c81beef1d31476494d25.tar.gz
scala-57ed4ca11459b48f2310c81beef1d31476494d25.tar.bz2
scala-57ed4ca11459b48f2310c81beef1d31476494d25.zip
Fixed #2201 (slight rewrite of paulp's patch at...
Fixed #2201 (slight rewrite of paulp's patch at http://github.com/paulp/scala/commit/24419959b4d6c93716c216bbf276948a830 4b4e6) ImplicitSearch::cacheResult now clones symbols that represent bound variables (more specifically, parameters of anonymous functions that are used as implicit values) to ensure that different bound variables are represented by different symbols (otherwise lambda lifting gets confused). updated check file for bug692: error-reporting got more complete because TypeRef::transform has been relaxed slightly
Diffstat (limited to 'test/files/pos/ticket2201.scala')
-rw-r--r--test/files/pos/ticket2201.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/ticket2201.scala b/test/files/pos/ticket2201.scala
new file mode 100644
index 0000000000..275867b88e
--- /dev/null
+++ b/test/files/pos/ticket2201.scala
@@ -0,0 +1,8 @@
+class Test
+object Test { implicit def view(x : Test) = 0 }
+
+object Call {
+ def call(implicit view : Test => Int) = view(null)
+ call
+ call
+} \ No newline at end of file