aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-04-13 14:23:47 +0200
committerliu fengyun <liu@fengy.me>2017-04-13 14:24:51 +0200
commit15e8d83a377398c9c13a5319a23645d10b14579a (patch)
treef2af3a4e6aaae1a502e459eab18838c8b77817f0 /tests
parentd541452940007bbc094e8a7f6785b6f8e9e7da22 (diff)
downloaddotty-15e8d83a377398c9c13a5319a23645d10b14579a.tar.gz
dotty-15e8d83a377398c9c13a5319a23645d10b14579a.tar.bz2
dotty-15e8d83a377398c9c13a5319a23645d10b14579a.zip
fix #2254: dealias types in decomposition of spaces
Diffstat (limited to 'tests')
-rw-r--r--tests/patmat/i2254.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/patmat/i2254.scala b/tests/patmat/i2254.scala
new file mode 100644
index 000000000..23dd8ad70
--- /dev/null
+++ b/tests/patmat/i2254.scala
@@ -0,0 +1,6 @@
+object Test {
+ type OrAlias = Int | Float
+
+ def m(s: OrAlias | String) = s match {
+ case _: Int => ; case _: Float => ; case _: String => ; }
+} \ No newline at end of file