diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-08-21 12:05:23 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-08-21 12:05:23 +0200 |
commit | bc6d4b5c1d6746528fd442d8504f30909d7e6067 (patch) | |
tree | 2423f1077563ebc3687d422d5e5639912a9dcf3a /test/files/pos | |
parent | ed230b51affa509a03298182b281afce5a74a87d (diff) | |
download | scala-bc6d4b5c1d6746528fd442d8504f30909d7e6067.tar.gz scala-bc6d4b5c1d6746528fd442d8504f30909d7e6067.tar.bz2 scala-bc6d4b5c1d6746528fd442d8504f30909d7e6067.zip |
SI-7486 More tests for cycles triggered by implicit search
Moved an existing test from `pending` to `pos`. Not sure why
it was moved to `pending` in the first place.
Adds a new test distilled from building Scalaz with 2.10.3-RC1.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t7486-named.scala | 8 | ||||
-rw-r--r-- | test/files/pos/t7486.scala | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t7486-named.scala b/test/files/pos/t7486-named.scala new file mode 100644 index 0000000000..253293e5f1 --- /dev/null +++ b/test/files/pos/t7486-named.scala @@ -0,0 +1,8 @@ + +object Test { + def fold(empty: Any) = () + implicit val notAnnotatedImplicit = new { + fold(empty = 0) + def empty[A]: Any = ??? + } +} 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 + } +} |