Skip to content

Commit 0230b5a

Browse files
committed
Another test
from conversation with Alex
1 parent dfe28e4 commit 0230b5a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)