Skip to content

Commit e62efd0

Browse files
committed
Explain read-only consumes
- New section in separation checking doc page - Slight generalization of expectsReadOnly - Lots of tests variations of #24373
1 parent e853b59 commit e62efd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/neg/i24375.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def foo(f: (x: Int) ?=> Int) = f(using 0)
2+
@main def Main = println(foo(x))

0 commit comments

Comments
 (0)