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 dfe28e4 commit 0230b5aCopy full SHA for 0230b5a
tests/neg-custom-args/captures/eta.scala
@@ -0,0 +1,7 @@
1
+ type Proc = (() -> Unit)
2
+ def foo(f: {*} Proc): {} Proc =
3
+ def bar[A <: {f} Proc](g: () -> A): () -> {f} Proc =
4
+ g
5
+ val stowaway: () -> {f} Proc =
6
+ bar( () => f ) // error
7
+ () => { stowaway.apply().apply() }
0 commit comments