summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-09-13 18:46:53 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-09-13 18:46:53 +1000
commita8a31e96dd115da09236a3d8f0d761f03db866fd (patch)
treeb2e1406c418449e83a3b9c92309a7f9d75b66cef /test/files/pos
parent87ca181e7b6874cce734a4a40f90fe4af2391d97 (diff)
downloadscala-a8a31e96dd115da09236a3d8f0d761f03db866fd.tar.gz
scala-a8a31e96dd115da09236a3d8f0d761f03db866fd.tar.bz2
scala-a8a31e96dd115da09236a3d8f0d761f03db866fd.zip
SI-8844 Fix regression with existentials + type aliases
Regressed in 2a1b15e / SI-8283. Another specimen of an archetypal bug: unwanted dealising by using `typeSymbol`, rather than `typeSymbolDirect`.
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t8844.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/t8844.scala b/test/files/pos/t8844.scala
new file mode 100644
index 0000000000..d33c520d1b
--- /dev/null
+++ b/test/files/pos/t8844.scala
@@ -0,0 +1,4 @@
+object Example {
+ type S[A] = String
+ def foo(s: S[_]): String = s
+}