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.
assert
1 parent 1f2ca04 commit a0a184eCopy full SHA for a0a184e
library/src/dotty/DottyPredef.scala
@@ -24,12 +24,12 @@ object DottyPredef {
24
*/
25
abstract class ImplicitConverter[-T, +U] extends Function1[T, U]
26
27
- @forceInline final def assert(assertion: Boolean, message: => Any): Unit = {
+ @forceInline final def assert(assertion: => Boolean, message: => Any): Unit = {
28
if (!assertion)
29
assertFail(message)
30
}
31
32
- @forceInline final def assert(assertion: Boolean): Unit = {
+ @forceInline final def assert(assertion: => Boolean): Unit = {
33
34
assertFail()
35
0 commit comments