diff options
Diffstat (limited to 'bridge/src/sbt-test/source-dependencies/import-package')
5 files changed, 28 insertions, 0 deletions
diff --git a/bridge/src/sbt-test/source-dependencies/import-package/A.scala b/bridge/src/sbt-test/source-dependencies/import-package/A.scala new file mode 100644 index 000000000..1c94ccf3a --- /dev/null +++ b/bridge/src/sbt-test/source-dependencies/import-package/A.scala @@ -0,0 +1 @@ +package a.b
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/import-package/B.scala b/bridge/src/sbt-test/source-dependencies/import-package/B.scala new file mode 100644 index 000000000..10ee10d82 --- /dev/null +++ b/bridge/src/sbt-test/source-dependencies/import-package/B.scala @@ -0,0 +1 @@ +import a.b
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/import-package/changes/A.scala b/bridge/src/sbt-test/source-dependencies/import-package/changes/A.scala new file mode 100644 index 000000000..d63f93ea4 --- /dev/null +++ b/bridge/src/sbt-test/source-dependencies/import-package/changes/A.scala @@ -0,0 +1 @@ +package a
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/import-package/pending b/bridge/src/sbt-test/source-dependencies/import-package/pending new file mode 100644 index 000000000..5dc9851d5 --- /dev/null +++ b/bridge/src/sbt-test/source-dependencies/import-package/pending @@ -0,0 +1,8 @@ +> compile + +# shorten the package defined in A from 'a.b' to 'a'. +$ copy-file changes/A.scala A.scala + +# 'import a.b' should now fail in B.scala +# succeeds because scalac doesn't track this dependency +-> compile diff --git a/bridge/src/sbt-test/source-dependencies/import-package/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/import-package/project/DottyInjectedPlugin.scala new file mode 100644 index 000000000..3433779b6 --- /dev/null +++ b/bridge/src/sbt-test/source-dependencies/import-package/project/DottyInjectedPlugin.scala @@ -0,0 +1,17 @@ +import sbt._ +import Keys._ + +object DottyInjectedPlugin extends AutoPlugin { + override def requires = plugins.JvmPlugin + override def trigger = allRequirements + + override val projectSettings = Seq( + scalaVersion := "0.1-SNAPSHOT", + scalaOrganization := "ch.epfl.lamp", + scalacOptions += "-language:Scala2", + scalaBinaryVersion := "2.11", + autoScalaLibrary := false, + libraryDependencies ++= Seq("org.scala-lang" % "scala-library" % "2.11.5"), + scalaCompilerBridgeSource := ("ch.epfl.lamp" % "dotty-bridge" % "0.1.1-SNAPSHOT" % "component").sources() + ) +} |