Skip to content

Commit d935bb0

Browse files
committed
Make DottyPredef compilable with -Yno-imports
DottyPredef needs to be compiled with -Yno-imports because it would clash otherwise with the DottyPredef in the root context. Note that ??? has to be written in fully qualified form because of #530.
1 parent eb3c8e5 commit d935bb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dotty/DottyPredef.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package dotty
22

33
import scala.reflect.ClassTag
44
import scala.reflect.runtime.universe.TypeTag
5+
import scala.Predef.??? // this is currently ineffective, because of #530
56

67
object DottyPredef {
78
/** implicits for ClassTag and TypeTag. Should be implemented with macros */
8-
implicit def classTag[T]: ClassTag[T] = ???
9-
implicit def typeTag[T]: TypeTag[T] = ???
9+
implicit def classTag[T]: ClassTag[T] = scala.Predef.???
10+
implicit def typeTag[T]: TypeTag[T] = scala.Predef.???
1011
}

0 commit comments

Comments
 (0)