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.
1 parent a2abd6c commit 7dbf29eCopy full SHA for 7dbf29e
library/src/dotty/DottyPredef.scala
@@ -37,6 +37,11 @@ object DottyPredef {
37
case ev: ValueOf[T] => ev.value
38
}
39
40
+ /** Summon an 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 given 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