aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/i2254.scala
diff options
context:
space:
mode:
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