Skip to content

Commit 8447ab2

Browse files
committed
Use transparent inline in the library
1 parent b3f2aee commit 8447ab2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/dotty/DottyPredef.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object DottyPredef {
88
assertFail(message)
99
}
1010

11-
inline final def assert(inline assertion: Boolean) <: Unit = {
11+
transparent inline final def assert(inline assertion: Boolean): Unit = {
1212
if (!assertion)
1313
assertFail()
1414
}

library/src/scala/compiletime/package.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ package object compiletime {
5252
*
5353
* the returned value would be `2`.
5454
*/
55-
inline def summonFrom[T](f: Nothing => T) <: T = ???
55+
transparent inline def summonFrom[T](f: Nothing => T): T = ???
5656

5757

5858
/** Summon a given value of type `T`. Usually, the argument is not passed explicitly.
@@ -61,7 +61,7 @@ package object compiletime {
6161
* @tparam T the type of the value to be summoned
6262
* @return the given value typed as the provided type parameter
6363
*/
64-
inline def summonInline[T] <: T = summonFrom {
64+
transparent inline def summonInline[T]: T = summonFrom {
6565
case t: T => t
6666
}
6767

0 commit comments

Comments
 (0)