Skip to content

Commit 0f7df93

Browse files
committed
Drop duplicate methods in DottyPredef
Drop some methods in DottyPredef that are also in Predef
1 parent c1e41ed commit 0f7df93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/src/dotty/DottyPredef.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object DottyPredef {
1616
def assertFail(): Nothing = throw new java.lang.AssertionError("assertion failed")
1717
def assertFail(message: => Any): Nothing = throw new java.lang.AssertionError("assertion failed: " + message)
1818

19-
inline final def implicitly[T](implicit ev: T): T = ev
19+
//inline final def implicitly[T](implicit ev: T): T = ev
2020

2121
/** Used to mark code blocks as being expressions, instead of being taken as part of anonymous classes and the like.
2222
* This is just a different name for [[identity]].
@@ -47,7 +47,7 @@ object DottyPredef {
4747
* }}}
4848
* @group utilities
4949
*/
50-
inline def locally[T](inline body: T): T = body
50+
//inline def locally[T](inline body: T): T = body
5151

5252
/**
5353
* Retrieve the single value of a type with a unique inhabitant.
@@ -62,9 +62,9 @@ object DottyPredef {
6262
* }}}
6363
* @group utilities
6464
*/
65-
inline def valueOf[T]: T = summonFrom {
66-
case ev: ValueOf[T] => ev.value
67-
}
65+
//inline def valueOf[T]: T = summonFrom {
66+
// case ev: ValueOf[T] => ev.value
67+
//}
6868

6969
/** Summon a given value of type `T`. Usually, the argument is not passed explicitly.
7070
*

0 commit comments

Comments
 (0)