diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-04 13:53:00 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-05 10:35:01 -0700 |
commit | 684e87427850053db58707e2b7f3f51e10f882a0 (patch) | |
tree | 114058d79ad7641d970d0f503f73ca8f10c6c923 /test | |
parent | 6bde11e531b32cc12b1185c5fe6a9135ab2a9b6b (diff) | |
download | scala-684e87427850053db58707e2b7f3f51e10f882a0.tar.gz scala-684e87427850053db58707e2b7f3f51e10f882a0.tar.bz2 scala-684e87427850053db58707e2b7f3f51e10f882a0.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t5580b.check | 6 | ||||
-rw-r--r-- | test/files/neg/t5580b.scala (renamed from test/files/pos/t5580b.scala) | 6 |
2 files changed, 6 insertions, 6 deletions
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 diff --git a/test/files/pos/t5580b.scala b/test/files/neg/t5580b.scala index d5a4a0a2b2..2161da4584 100644 --- a/test/files/pos/t5580b.scala +++ b/test/files/neg/t5580b.scala @@ -1,9 +1,3 @@ -/** 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._ |