aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/i2254.scala
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-04-13 15:02:03 +0200
committerGitHub <noreply@github.com>2017-04-13 15:02:03 +0200
commitde6461ab17562dbb46a1ff094590e051d03cb54c (patch)
treedee86654f0cdd228730676e6ba7668ce6d12e4da /tests/patmat/i2254.scala
parent195fe4a475b7f35fba09af6126a205a959bb284d (diff)
parent15e8d83a377398c9c13a5319a23645d10b14579a (diff)
downloaddotty-de6461ab17562dbb46a1ff094590e051d03cb54c.tar.gz
dotty-de6461ab17562dbb46a1ff094590e051d03cb54c.tar.bz2
dotty-de6461ab17562dbb46a1ff094590e051d03cb54c.zip
Merge pull request #2256 from dotty-staging/fix-2254
fix #2254: dealias types in decomposition of spaces
Diffstat (limited to 'tests/patmat/i2254.scala')
-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