Skip to content

Commit ffb59c6

Browse files
committed
Add capture checking to stdLibPatches
1 parent b601260 commit ffb59c6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

TODO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
- [x] library/src/scala/runtime/Tuples.scala
9494
- [x] library/src/scala/runtime/TypeBox.scala
9595
- [x] library/src/scala/runtime/coverage/Invoker.scala
96-
- [ ] library/src/scala/runtime/stdLibPatches/Predef.scala
97-
- [ ] library/src/scala/runtime/stdLibPatches/language.scala
96+
- [x] library/src/scala/runtime/stdLibPatches/Predef.scala
97+
- [x] library/src/scala/runtime/stdLibPatches/language.scala
9898
- [x] library/src/scala/util/CommandLineParser.scala
9999
- [x] library/src/scala/util/FromDigits.scala
100100
- [x] library/src/scala/util/NotGiven.scala

library/src/scala/runtime/stdLibPatches/language.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.runtime.stdLibPatches
22

3+
import scala.language.experimental.captureChecking
4+
35
import scala.annotation.compileTimeOnly
46

57
/** Scala 3 additions and replacements to the `scala.language` object.

mk_todo.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env fish
22

33
for file in (ls library/src/**.scala | sort)
4-
set checkbox (if rg -Fq "import language.experimental.captureChecking" $file; echo "[x]"; else; echo "[ ]"; end)
4+
set checkbox (if rg -q 'import (scala.)?language.experimental.captureChecking' $file; echo "[x]"; else; echo "[ ]"; end)
55
printf "- %s %s\n" $checkbox $file
66
end

0 commit comments

Comments
 (0)