We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18222b7 commit 7e695fdCopy full SHA for 7e695fd
tests/neg-custom-args/captures/cc-depfun.scala
@@ -0,0 +1,9 @@
1
+trait Cap { def use(): Unit }
2
+
3
+def main() = {
4
+ val f: (io: {*} Cap) -> {} () -> Unit =
5
+ io => () => io.use() // error
6
7
+ val g: ({*} Cap) -> {} () -> Unit =
8
9
+}
0 commit comments