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 68e2023 commit a721b73Copy full SHA for a721b73
library/src/dotty/DottyPredef.scala
@@ -3,12 +3,12 @@ package dotty
3
object DottyPredef {
4
import compiletime.summonFrom
5
6
- inline final def assert(assertion: => Boolean, message: => Any): Unit = {
+ inline final def assert(inline assertion: Boolean, inline message: => Any): Unit = {
7
if (!assertion)
8
assertFail(message)
9
}
10
11
- inline final def assert(inline assertion: => Boolean) <: Unit = {
+ inline final def assert(inline assertion: Boolean): Unit = {
12
13
assertFail()
14
0 commit comments