Skip to content

Commit 97082df

Browse files
Example for interaction with show
1 parent 85be025 commit 97082df

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cons(12, Nil())
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
def foo[A](x: A){ ?show: A => String }: Unit =
3+
println(show(x))
4+
5+
def main() = foo([12])

0 commit comments

Comments
 (0)