From 510f63778011060a8d912085b7248ef69e4217f8 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 13 May 2012 17:47:00 +0200 Subject: SI-5318 Make implicit divergence checking PolyType aware. Replaces the two active subclasses of `SymCollector` with direct use of traversal methods of `Type`. Wildcard free class type parameters, not just method type parameters, when stripping the core type of candidate implicits. The spec doesn't make any such distinction, and the enclosed test, t5318c, crashes without this change. --- test/files/neg/t5318c.check | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/neg/t5318c.check (limited to 'test/files/neg/t5318c.check') diff --git a/test/files/neg/t5318c.check b/test/files/neg/t5318c.check new file mode 100644 index 0000000000..594539be69 --- /dev/null +++ b/test/files/neg/t5318c.check @@ -0,0 +1,5 @@ +t5318c.scala:13: error: diverging implicit expansion for type CompilerHang.this.TC[F] +starting with method tc in class CompilerHang + breakage // type checker doesn't terminate, should report inference failure + ^ +one error found -- cgit v1.2.3