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.
2 parents fc4135d + 3ac1915 commit 0b4871dCopy full SHA for 0b4871d
library/src/dotty/DottyPredef.scala
@@ -37,6 +37,11 @@ object DottyPredef {
37
case ev: ValueOf[T] => ev.value
38
}
39
40
+ /** Summon a given value of type `T`. Usually, the argument is not passed explicitly.
41
+ *
42
+ * @tparam T the type of the value to be summoned
43
+ * @return the given value typed as the provided type parameter
44
+ */
45
inline def summon[T](using x: T): x.type = x
46
47
// Extension methods for working with explicit nulls
0 commit comments