From dd33e280e2520cfc155c90db01c48df8188d0433 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 17 May 2013 10:51:33 -0700 Subject: SI-7486 regression in implicit resolution. What a touchy beast the compiler is. --- test/files/pos/t7486.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/t7486.scala (limited to 'test/files/pos/t7486.scala') diff --git a/test/files/pos/t7486.scala b/test/files/pos/t7486.scala new file mode 100644 index 0000000000..6dd7f4c4ac --- /dev/null +++ b/test/files/pos/t7486.scala @@ -0,0 +1,8 @@ +object Test{ + var locker = 0 + // remove implicit, or change to `locker = locker + 1` to make it compile. + implicit val davyJones0 = { + locker += 0 + 0 + } +} -- cgit v1.2.3