aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/scala/tools/nsc/io/package.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-04-13 21:14:28 +0200
committerGitHub <noreply@github.com>2017-04-13 21:14:28 +0200
commit9e45ad16d012e6a2ff3be411c2fe101b1c74b831 (patch)
tree3f8af20f82bbee9ace7f5a39f97f9b64778b38b4 /compiler/src/scala/tools/nsc/io/package.scala
parent975f7efab69e8e5a23db665f33dceecb0bf6ceaa (diff)
parent476778612e71379cf648693f7d02039301fb5607 (diff)
downloaddotty-9e45ad16d012e6a2ff3be411c2fe101b1c74b831.tar.gz
dotty-9e45ad16d012e6a2ff3be411c2fe101b1c74b831.tar.bz2
dotty-9e45ad16d012e6a2ff3be411c2fe101b1c74b831.zip
Merge pull request #2260 from dotty-staging/backend-submodule
Fix #2184: Hyper Bootstrap! Integrate the backend as a git submodule
Diffstat (limited to 'compiler/src/scala/tools/nsc/io/package.scala')
-rw-r--r--compiler/src/scala/tools/nsc/io/package.scala27
1 files changed, 27 insertions, 0 deletions
diff --git a/compiler/src/scala/tools/nsc/io/package.scala b/compiler/src/scala/tools/nsc/io/package.scala
new file mode 100644
index 000000000..6b30e5441
--- /dev/null
+++ b/compiler/src/scala/tools/nsc/io/package.scala
@@ -0,0 +1,27 @@
+package scala.tools.nsc
+
+/**
+ * Compatibility layer needed for the backend.
+ *
+ * Our backend is based on the Scala 2.11 GenBCode backend and modified so that
+ * it compiles both with dotty and scalac, since the backend uses
+ * scala.tools.nsc.io.*, we need to also provide it.
+ *
+ * See http://dotty.epfl.ch/docs/contributing/backend.html for more information.
+ */
+package object io {
+ type AbstractFile = scala.reflect.io.AbstractFile
+ val AbstractFile = scala.reflect.io.AbstractFile
+
+ type Directory = scala.reflect.io.Directory
+ val Directory = scala.reflect.io.Directory
+
+ type Path = scala.reflect.io.Path
+ val Path = scala.reflect.io.Path
+
+ type File = scala.reflect.io.File
+ val File = scala.reflect.io.File
+
+ type Jar = dotty.tools.io.Jar
+ val Jar = dotty.tools.io.Jar
+}