summaryrefslogtreecommitdiff
path: root/test/files/neg/t6771b.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-04-29 14:38:35 +0200
committerJason Zaugg <jzaugg@gmail.com>2014-05-07 15:45:19 +0200
commit1ba2d7bb967ded0c19ff2cf966c492adc12292bb (patch)
tree1bb3f342d8a2060b461020c9e3431bbd3eff2a58 /test/files/neg/t6771b.scala
parentca9003e453873c496c72c431f0e5f9f3eaf31511 (diff)
downloadscala-1ba2d7bb967ded0c19ff2cf966c492adc12292bb.tar.gz
scala-1ba2d7bb967ded0c19ff2cf966c492adc12292bb.tar.bz2
scala-1ba2d7bb967ded0c19ff2cf966c492adc12292bb.zip
SI-8546 Pattern matcher analysis foiled by over-widening
In the enclosed test, the prefix checkable type `ModuleTypeRef(F2.this, C)` was being inadvertently widened to `ModuleTypeRef(F2[?], C)`. This started after some misguided future-proofing in SI-6771 / 3009916. This commit changes the `dealiasWiden` to a `delias`.
Diffstat (limited to 'test/files/neg/t6771b.scala')
-rw-r--r--test/files/neg/t6771b.scala2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/files/neg/t6771b.scala b/test/files/neg/t6771b.scala
index 78f11f7750..9723f70290 100644
--- a/test/files/neg/t6771b.scala
+++ b/test/files/neg/t6771b.scala
@@ -6,8 +6,6 @@
// But, to the intrepid hacker who works on this, a few notes:
// You'll have to look into places in the pattern matcher that
// call `dealias`, and see if they need to be `dealiasWiden`.
-// For example, if `checkableType` used only `dealias`, `pos/t6671.scala`
-// would fail.
object Test {
val a = ""; var b: a.type = a