summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/elidable-tparams.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/elidable-tparams.scala b/test/files/pos/elidable-tparams.scala
new file mode 100644
index 0000000000..456c472c4e
--- /dev/null
+++ b/test/files/pos/elidable-tparams.scala
@@ -0,0 +1,10 @@
+import annotation._
+import elidable._
+
+class ElidableCrashTest {
+ trait My
+
+ @elidable(ALL) def foo[a >: My <: My]: scala.Unit = ()
+
+ foo[My] // crash
+} \ No newline at end of file