Skip to content

Commit af749cf

Browse files
committed
Fixes
- bring back valueOf, the old one fails many tests - correct check file - exclude pickling test involving Predef.implicitly
1 parent 0f7df93 commit af749cf

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

compiler/test/dotc/pos-test-pickling.blacklist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ i8651b.scala
4949

5050
# uneliminated @uncheckedVariance after pickling
5151
annot-bootstrap.scala
52+
53+
# interaction with Scala-2's implicitly
54+
i9793.scala
55+

library/src/dotty/DottyPredef.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*

tests/neg/implicitSearch.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
-- Error: tests/neg/implicitSearch.scala:15:38 -------------------------------------------------------------------------
1111
15 | listOrd(listOrd(implicitly[Ord[T]] /*not found*/)) // error
1212
| ^
13-
| no implicit argument of type Test.Ord[T] was found for parameter ev of method implicitly in object DottyPredef
13+
| no implicit argument of type Test.Ord[T] was found for parameter e of method implicitly in object Predef

0 commit comments

Comments
 (0)