From 15e8d83a377398c9c13a5319a23645d10b14579a Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Thu, 13 Apr 2017 14:23:47 +0200 Subject: fix #2254: dealias types in decomposition of spaces --- tests/patmat/i2254.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/patmat/i2254.scala (limited to 'tests') 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 -- cgit v1.2.3