File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ package dotty
3
3
object DottyPredef {
4
4
import compiletime .summonFrom
5
5
6
- inline final def assert (assertion : => Boolean , message : => Any ): Unit = {
6
+ inline final def assert (inline assertion : Boolean , inline message : => Any ): Unit = {
7
7
if (! assertion)
8
8
assertFail(message)
9
9
}
10
10
11
- inline final def assert (inline assertion : => Boolean ) < : Unit = {
11
+ inline final def assert (inline assertion : Boolean ): Unit = {
12
12
if (! assertion)
13
13
assertFail()
14
14
}
15
15
16
- def assertFail (): Nothing = throw new java.lang.AssertionError (" assertion failed" )
17
- def assertFail (message : => Any ): Nothing = throw new java.lang.AssertionError (" assertion failed: " + message)
16
+ private def assertFail (): Nothing = throw new java.lang.AssertionError (" assertion failed" )
17
+ private def assertFail (message : => Any ): Nothing = throw new java.lang.AssertionError (" assertion failed: " + message)
18
18
19
19
inline final def implicitly [T ](implicit ev : T ): T = ev
20
20
You can’t perform that action at this time.
0 commit comments