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 {
13
13
scala.runtime.Scala3RunTime .assertFailed()
14
14
}
15
15
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
-
49
16
/**
50
17
* Retrieve the single value of a type with a unique inhabitant.
51
18
*
@@ -59,9 +26,9 @@ object DottyPredef {
59
26
* }}}
60
27
* @group utilities
61
28
*/
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
+ // }
65
32
66
33
/** Summon a given value of type `T`. Usually, the argument is not passed explicitly.
67
34
*
You can’t perform that action at this time.
0 commit comments