summaryrefslogtreecommitdiff
path: root/test/files/pos/SI-7100.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/SI-7100.scala')
-rw-r--r--test/files/pos/SI-7100.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/SI-7100.scala b/test/files/pos/SI-7100.scala
new file mode 100644
index 0000000000..7cb6356ec8
--- /dev/null
+++ b/test/files/pos/SI-7100.scala
@@ -0,0 +1,6 @@
+class Buffer {
+ def f[@specialized(Int) T](): T = 0 match {
+ case 0 => 0.asInstanceOf[T]
+ case 1 => 0.asInstanceOf[T]
+ }
+}