From 684e87427850053db58707e2b7f3f51e10f882a0 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 4 Apr 2013 13:53:00 -0700 Subject: Transcendent rewrite of isSameType. A highly satisfying rewrite of isSameType. It's faster, clearer, shorter, better commented, and closer to correct. I am especially pleased that t5580b stopped compiling, given that nobody seemed to have much idea why it compiled in the first place. --- test/files/neg/t5580b.check | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/neg/t5580b.check (limited to 'test/files/neg/t5580b.check') diff --git a/test/files/neg/t5580b.check b/test/files/neg/t5580b.check new file mode 100644 index 0000000000..45fde46ff9 --- /dev/null +++ b/test/files/neg/t5580b.check @@ -0,0 +1,6 @@ +t5580b.scala:11: error: polymorphic expression cannot be instantiated to expected type; + found : [A]scala.collection.mutable.Set[A] + required: scala.collection.mutable.Map[bar,scala.collection.mutable.Set[bar]] + if (map.get(tmp).isEmpty) map.put(tmp,collection.mutable.Set()) + ^ +one error found -- cgit v1.2.3