File tree Expand file tree Collapse file tree 1 file changed +3
-36
lines changed Expand file tree Collapse file tree 1 file changed +3
-36
lines changed Original file line number Diff line number Diff line change @@ -13,39 +13,6 @@ object DottyPredef {
1313 scala.runtime.Scala3RunTime .assertFailed()
1414 }
1515
16- inline final def implicitly [T ](implicit ev : T ): T = ev
17-
18- /** Used to mark code blocks as being expressions, instead of being taken as part of anonymous classes and the like.
19- * This is just a different name for [[identity ]].
20- *
21- * @example Separating code blocks from `new`:
22- * {{{
23- * val x = new AnyRef
24- * {
25- * val y = ...
26- * println(y)
27- * }
28- * // the { ... } block is seen as the body of an anonymous class
29- *
30- * val x = new AnyRef
31- *
32- * {
33- * val y = ...
34- * println(y)
35- * }
36- * // an empty line is a brittle "fix"
37- *
38- * val x = new AnyRef
39- * locally {
40- * val y = ...
41- * println(y)
42- * }
43- * // locally guards the block and helps communicate intent
44- * }}}
45- * @group utilities
46- */
47- inline def locally [T ](inline body : T ): T = body
48-
4916 /**
5017 * Retrieve the single value of a type with a unique inhabitant.
5118 *
@@ -59,9 +26,9 @@ object DottyPredef {
5926 * }}}
6027 * @group utilities
6128 */
62- inline def valueOf [T ]: T = summonFrom {
63- case ev : ValueOf [T ] => ev.value
64- }
29+ // inline def valueOf[T]: T = summonFrom {
30+ // case ev: ValueOf[T] => ev.value
31+ // }
6532
6633 /** Summon a given value of type `T`. Usually, the argument is not passed explicitly.
6734 *
You can’t perform that action at this time.
0 commit comments