File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ object DottyPredef {
8
8
assertFail(message)
9
9
}
10
10
11
- inline final def assert (inline assertion : Boolean ) < : Unit = {
11
+ transparent inline final def assert (inline assertion : Boolean ): Unit = {
12
12
if (! assertion)
13
13
assertFail()
14
14
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ package object compiletime {
52
52
*
53
53
* the returned value would be `2`.
54
54
*/
55
- inline def summonFrom [T ](f : Nothing => T ) < : T = ???
55
+ transparent inline def summonFrom [T ](f : Nothing => T ): T = ???
56
56
57
57
58
58
/** Summon a given value of type `T`. Usually, the argument is not passed explicitly.
@@ -61,7 +61,7 @@ package object compiletime {
61
61
* @tparam T the type of the value to be summoned
62
62
* @return the given value typed as the provided type parameter
63
63
*/
64
- inline def summonInline [T ] < : T = summonFrom {
64
+ transparent inline def summonInline [T ]: T = summonFrom {
65
65
case t : T => t
66
66
}
67
67
You can’t perform that action at this time.
0 commit comments