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/pos/t5580b.scala | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 test/files/pos/t5580b.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t5580b.scala b/test/files/pos/t5580b.scala deleted file mode 100644 index d5a4a0a2b2..0000000000 --- a/test/files/pos/t5580b.scala +++ /dev/null @@ -1,19 +0,0 @@ -/** It's a pos test because it does indeed compile, - * not so much because I'm glad it does. Testing - * that error messages created and discarded during - * implicit search don't blow it up. - */ - -import scala.collection.mutable.WeakHashMap -import scala.collection.JavaConversions._ - -class bar { } - -class foo { - val map = WeakHashMap[AnyRef, collection.mutable.Map[bar, collection.mutable.Set[bar]]]() - - def test={ - val tmp:bar=null - if (map.get(tmp).isEmpty) map.put(tmp,collection.mutable.Set()) - } -} -- cgit v1.2.3