summaryrefslogtreecommitdiff
path: root/test/files/pos/t5359.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t5359.scala')
-rw-r--r--test/files/pos/t5359.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/t5359.scala b/test/files/pos/t5359.scala
new file mode 100644
index 0000000000..c22b2b1c76
--- /dev/null
+++ b/test/files/pos/t5359.scala
@@ -0,0 +1,17 @@
+// /scala/trac/5359/a.scala
+// Thu Jan 5 13:31:05 PST 2012
+
+object test {
+ trait Step[F[_]] {
+ // crash: typeConstructor inapplicable for <none>
+ this match {
+ case S1() =>
+ }
+ }
+ case class S1[F[_]]() extends Step[F]
+
+ // okay
+ (null: Step[Option]) match {
+ case S1() =>
+ }
+}