aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t8369a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t8369a.scala')
-rw-r--r--tests/pos/t8369a.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pos/t8369a.scala b/tests/pos/t8369a.scala
new file mode 100644
index 000000000..13046007f
--- /dev/null
+++ b/tests/pos/t8369a.scala
@@ -0,0 +1,5 @@
+object Bug {
+ trait Sys[S]
+ def test[S <: Sys[S]] = read[S]()
+ def read[S <: Sys[S]](baz: Any = 0): Some[S] = ???
+}