summaryrefslogtreecommitdiff
path: root/test/files/pos/t6771.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-05-03 02:28:10 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-05-03 02:28:10 -0700
commit48e80cb8c715cf8cb6dc73a5f894838671e385a4 (patch)
tree8c4bef6a82fde0551d2bfcd5a55678af4d2b0875 /test/files/pos/t6771.scala
parent98972c95ab1e7c0ea2af9c9a958c0de60eb26b3d (diff)
parent30099160320b649b1e8e5f69c8ad1b02478fbfe2 (diff)
downloadscala-48e80cb8c715cf8cb6dc73a5f894838671e385a4.tar.gz
scala-48e80cb8c715cf8cb6dc73a5f894838671e385a4.tar.bz2
scala-48e80cb8c715cf8cb6dc73a5f894838671e385a4.zip
Merge pull request #2440 from retronym/ticket/6771
SI-6771 Alias awareness for checkableType in match analysis.
Diffstat (limited to 'test/files/pos/t6771.scala')
-rw-r--r--test/files/pos/t6771.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t6771.scala b/test/files/pos/t6771.scala
new file mode 100644
index 0000000000..0f0bd4e4a0
--- /dev/null
+++ b/test/files/pos/t6771.scala
@@ -0,0 +1,9 @@
+object Test {
+ type Id[X] = X
+ val a: Id[Option[Int]] = None
+
+ a match {
+ case Some(x) => println(x)
+ case None =>
+ }
+}