diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-10-11 17:28:39 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:06 +0100 |
commit | 2d10c87ce537fb42fdb134efcae53dca7305a7b7 (patch) | |
tree | a3629c9a3ad6db3e9d07df8fa8621f8c8211076c /bridge/src/sbt-test | |
parent | 34d64f381362b12a595fd26690c7c9b1c26d16f7 (diff) | |
download | dotty-2d10c87ce537fb42fdb134efcae53dca7305a7b7.tar.gz dotty-2d10c87ce537fb42fdb134efcae53dca7305a7b7.tar.bz2 dotty-2d10c87ce537fb42fdb134efcae53dca7305a7b7.zip |
Move sbt-bridge
Diffstat (limited to 'bridge/src/sbt-test')
495 files changed, 0 insertions, 3656 deletions
diff --git a/bridge/src/sbt-test/compilerReporter/simple/Source.scala b/bridge/src/sbt-test/compilerReporter/simple/Source.scala deleted file mode 100644 index 6f0678599..000000000 --- a/bridge/src/sbt-test/compilerReporter/simple/Source.scala +++ /dev/null @@ -1,10 +0,0 @@ -trait A -trait B - -trait Wr { - val z: A with B -} - -object Er { - val a = er1 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/compilerReporter/simple/build.sbt b/bridge/src/sbt-test/compilerReporter/simple/build.sbt deleted file mode 100644 index 017846f5e..000000000 --- a/bridge/src/sbt-test/compilerReporter/simple/build.sbt +++ /dev/null @@ -1 +0,0 @@ -Reporter.checkSettings
\ No newline at end of file diff --git a/bridge/src/sbt-test/compilerReporter/simple/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/compilerReporter/simple/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/compilerReporter/simple/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/compilerReporter/simple/project/Reporter.scala b/bridge/src/sbt-test/compilerReporter/simple/project/Reporter.scala deleted file mode 100644 index c0a56ec82..000000000 --- a/bridge/src/sbt-test/compilerReporter/simple/project/Reporter.scala +++ /dev/null @@ -1,44 +0,0 @@ -import sbt._ -import Keys._ -import KeyRanks.DTask - -object Reporter { - import xsbti.{Reporter, Problem, Position, Severity, Maybe} - - lazy val check = TaskKey[Unit]("check", "make sure compilation info are forwared to sbt") - - // compilerReporter is marked private in sbt - lazy val compilerReporter = TaskKey[Option[xsbti.Reporter]]("compilerReporter", "Experimental hook to listen (or send) compilation failure messages.", DTask) - - lazy val reporter = - Some(new xsbti.Reporter { - private val buffer = collection.mutable.ArrayBuffer.empty[Problem] - def reset(): Unit = buffer.clear() - def hasErrors: Boolean = buffer.exists(_.severity == Severity.Error) - def hasWarnings: Boolean = buffer.exists(_.severity == Severity.Warn) - def printSummary(): Unit = println(problems.mkString(System.lineSeparator)) - def problems: Array[Problem] = buffer.toArray - def log(pos: Position, msg: String, sev: Severity): Unit = { - object MyProblem extends Problem { - def category: String = null - def severity: Severity = sev - def message: String = msg - def position: Position = pos - override def toString = s"custom: $position:$severity: $message" - } - buffer.append(MyProblem) - } - def comment(pos: xsbti.Position, msg: String): Unit = () - }) - - lazy val checkSettings = Seq( - compilerReporter in (Compile, compile) := reporter, - check <<= (compile in Compile).mapFailure( _ => { - val problems = reporter.get.problems - println(problems.toList) - assert(problems.size == 2) - assert(problems.count(_.severity == Severity.Error) == 1) // not found: er1, - assert(problems.count(_.severity == Severity.Warn) == 1) // `with' as a type operator has been deprecated; use `&' instead, - }) - ) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/compilerReporter/simple/test b/bridge/src/sbt-test/compilerReporter/simple/test deleted file mode 100644 index a5912a391..000000000 --- a/bridge/src/sbt-test/compilerReporter/simple/test +++ /dev/null @@ -1 +0,0 @@ -> check
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/abstract-override/A.scala b/bridge/src/sbt-test/source-dependencies/abstract-override/A.scala deleted file mode 100644 index 43b95b9e9..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-override/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - def x: Int -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-override/B.scala b/bridge/src/sbt-test/source-dependencies/abstract-override/B.scala deleted file mode 100644 index c7569ba51..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-override/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait B extends A { - override def x = 2 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/abstract-override/C.scala b/bridge/src/sbt-test/source-dependencies/abstract-override/C.scala deleted file mode 100644 index 24d656d4a..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-override/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait C extends A { - def x = 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/abstract-override/D.scala b/bridge/src/sbt-test/source-dependencies/abstract-override/D.scala deleted file mode 100644 index 1f0d0a274..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-override/D.scala +++ /dev/null @@ -1 +0,0 @@ -trait D extends C with B
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/abstract-override/changes/C2.scala b/bridge/src/sbt-test/source-dependencies/abstract-override/changes/C2.scala deleted file mode 100644 index 5cb6be980..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-override/changes/C2.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait C extends A { - abstract override def x = super.x + 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/abstract-override/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/abstract-override/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-override/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-override/test b/bridge/src/sbt-test/source-dependencies/abstract-override/test deleted file mode 100644 index 8021d5ce2..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-override/test +++ /dev/null @@ -1,3 +0,0 @@ -> compile -$ copy-file changes/C2.scala C.scala --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type-override/build.sbt b/bridge/src/sbt-test/source-dependencies/abstract-type-override/build.sbt deleted file mode 100644 index 92d209377..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type-override/build.sbt +++ /dev/null @@ -1,7 +0,0 @@ -InputKey[Unit]("check-number-of-compiler-iterations") <<= inputTask { (argTask: TaskKey[Seq[String]]) => - (argTask, compile in Compile) map { (args: Seq[String], a: sbt.inc.Analysis) => - assert(args.size == 1) - val expectedIterationsNumber = args(0).toInt - assert(a.compilations.allCompilations.size == expectedIterationsNumber, "a.compilations.allCompilations.size = %d (expected %d)".format(a.compilations.allCompilations.size, expectedIterationsNumber)) - } -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type-override/changes/Bar1.scala b/bridge/src/sbt-test/source-dependencies/abstract-type-override/changes/Bar1.scala deleted file mode 100644 index fb8320f6e..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type-override/changes/Bar1.scala +++ /dev/null @@ -1,4 +0,0 @@ -object Bar { - def bar: Outer.TypeInner = null - // comment to trigger recompilation -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type-override/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/abstract-type-override/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type-override/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Bar.scala b/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Bar.scala deleted file mode 100644 index 93e2de3bc..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Bar.scala +++ /dev/null @@ -1,3 +0,0 @@ -object Bar { - def bar: Outer.TypeInner = null -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Foo.scala b/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Foo.scala deleted file mode 100644 index 44e7145e1..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Foo.scala +++ /dev/null @@ -1,5 +0,0 @@ -object Outer { - class Inner { type Xyz } - - type TypeInner = Inner { type Xyz = Int } -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Impl.scala b/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Impl.scala deleted file mode 100644 index b691898dd..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type-override/src/main/scala/Impl.scala +++ /dev/null @@ -1,3 +0,0 @@ -class Impl { - def bleep = Bar.bar -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type-override/test b/bridge/src/sbt-test/source-dependencies/abstract-type-override/test deleted file mode 100644 index b0bec415e..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type-override/test +++ /dev/null @@ -1,14 +0,0 @@ -# Test for separate compilation and proper value of -# the OVERRIDE flag when abstract types, type alias -# and structural type are involved -# See https://github.com/sbt/sbt/issues/726 for details - -# introduces first compile iteration -> compile -# this change adds a comment and does not change api so introduces -# only one additional compile iteration -$ copy-file changes/Bar1.scala src/main/scala/Bar.scala -# second iteration -#> compile -# check if there are only two compile iterations performed -> check-number-of-compiler-iterations 2 diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type/A.scala b/bridge/src/sbt-test/source-dependencies/abstract-type/A.scala deleted file mode 100644 index 08c21e380..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - type S[_] -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type/B.scala b/bridge/src/sbt-test/source-dependencies/abstract-type/B.scala deleted file mode 100644 index c6fa33d89..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait B extends A { - type F = S[Int] -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type/changes/A.scala b/bridge/src/sbt-test/source-dependencies/abstract-type/changes/A.scala deleted file mode 100644 index 7d5c095b4..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type/changes/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - type S -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/abstract-type/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/abstract-type/test b/bridge/src/sbt-test/source-dependencies/abstract-type/test deleted file mode 100644 index 3f5a5c7e3..000000000 --- a/bridge/src/sbt-test/source-dependencies/abstract-type/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# remove type arguments from S -$ copy-file changes/A.scala A.scala - -# Both A.scala and B.scala should be recompiled, producing a compile error --> compile diff --git a/bridge/src/sbt-test/source-dependencies/added/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/added/changes/A1.scala deleted file mode 100644 index a58c253c0..000000000 --- a/bridge/src/sbt-test/source-dependencies/added/changes/A1.scala +++ /dev/null @@ -1,6 +0,0 @@ -package example - -object A -{ - val x: Int = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/added/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/added/changes/A2.scala deleted file mode 100644 index 48ac8e5b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/added/changes/A2.scala +++ /dev/null @@ -1,6 +0,0 @@ -package example - -object A -{ - val x: Int = B.y -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/added/changes/A3.scala b/bridge/src/sbt-test/source-dependencies/added/changes/A3.scala deleted file mode 100644 index ec450b67e..000000000 --- a/bridge/src/sbt-test/source-dependencies/added/changes/A3.scala +++ /dev/null @@ -1,6 +0,0 @@ -package example - -object A -{ - val x: String = B.y -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/added/changes/B1.scala b/bridge/src/sbt-test/source-dependencies/added/changes/B1.scala deleted file mode 100644 index 9b5cc4ee9..000000000 --- a/bridge/src/sbt-test/source-dependencies/added/changes/B1.scala +++ /dev/null @@ -1,6 +0,0 @@ -package example - -object B -{ - val y: String = "4" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/added/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/added/changes/B2.scala deleted file mode 100644 index fc8c53c9c..000000000 --- a/bridge/src/sbt-test/source-dependencies/added/changes/B2.scala +++ /dev/null @@ -1,6 +0,0 @@ -package example - -object B -{ - val y: Int = 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/added/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/added/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/added/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/added/test b/bridge/src/sbt-test/source-dependencies/added/test deleted file mode 100644 index a1ab31849..000000000 --- a/bridge/src/sbt-test/source-dependencies/added/test +++ /dev/null @@ -1,28 +0,0 @@ -# This test checks that when a source file included in a partial recompilation adds a dependency on -# a file not included in the partial recompilation, the dependency is properly recorded. - -# B and A are independent, so both should compile successfully -$ copy-file changes/A1.scala src/main/scala/A.scala -$ copy-file changes/B1.scala src/main/scala/B.scala -> compile - - -# A now depends on B and to check that it was recompiled, we mismatch the types, which should fail -$ copy-file changes/A2.scala src/main/scala/A.scala --> compile - - -# We now correct the type so that it compiles successfully and this should introduce a dependency from A to B -$ copy-file changes/A3.scala src/main/scala/A.scala -> compile - - -# If the dependency from A to B was properly introduced, changing the type of B.y to Int should make -# the following statement in A a compiler error: -# val x: String = B.y -$ copy-file changes/B2.scala src/main/scala/B.scala --> compile - -# verify this was the correct result by doing a clean+compile -> clean --> compile diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/A.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-a/A.scala deleted file mode 100644 index fe6a784a4..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/A.scala +++ /dev/null @@ -1,6 +0,0 @@ -abstract class A { - type T - object X { - def foo(x: T): T = x - } -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/B.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-a/B.scala deleted file mode 100644 index 60059966f..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -class B extends A { - type T = Int -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/C.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-a/C.scala deleted file mode 100644 index 3753dbeec..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/C.scala +++ /dev/null @@ -1 +0,0 @@ -object C extends B diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/D.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-a/D.scala deleted file mode 100644 index ace241491..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/D.scala +++ /dev/null @@ -1,3 +0,0 @@ -object D { - C.X.foo(12) -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-a/changes/B2.scala deleted file mode 100644 index 18f3eefdd..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/changes/B2.scala +++ /dev/null @@ -1,3 +0,0 @@ -class B extends A { - type T = String -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-a/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/test b/bridge/src/sbt-test/source-dependencies/as-seen-from-a/test deleted file mode 100644 index 176a86399..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-a/test +++ /dev/null @@ -1,3 +0,0 @@ -> compile -$ copy-file changes/B2.scala B.scala --> compile diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/A.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-b/A.scala deleted file mode 100644 index f4ae0b78d..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/A.scala +++ /dev/null @@ -1,7 +0,0 @@ -abstract class A { - type T <: S - type S - object X { - def foo: T = null.asInstanceOf[T] - } -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/B.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-b/B.scala deleted file mode 100644 index f97007480..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -class B extends A { - type S <: Int -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/C.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-b/C.scala deleted file mode 100644 index 3753dbeec..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/C.scala +++ /dev/null @@ -1 +0,0 @@ -object C extends B diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/D.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-b/D.scala deleted file mode 100644 index ec333ca60..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/D.scala +++ /dev/null @@ -1,3 +0,0 @@ -object D { - val x: Int = C.X.foo -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-b/changes/B2.scala deleted file mode 100644 index f8fa3ad03..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/changes/B2.scala +++ /dev/null @@ -1,3 +0,0 @@ -class B extends A { - type S <: String -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/as-seen-from-b/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/test b/bridge/src/sbt-test/source-dependencies/as-seen-from-b/test deleted file mode 100644 index 176a86399..000000000 --- a/bridge/src/sbt-test/source-dependencies/as-seen-from-b/test +++ /dev/null @@ -1,3 +0,0 @@ -> compile -$ copy-file changes/B2.scala B.scala --> compile diff --git a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/A.scala b/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/A.scala deleted file mode 100644 index 1d3a976a8..000000000 --- a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def `=` = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/B.scala b/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/B.scala deleted file mode 100644 index 03d8769fd..000000000 --- a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B extends dotty.runtime.LegacyApp { - println(A.`=`) -} diff --git a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/build.sbt b/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/build.sbt deleted file mode 100644 index 8a38ef414..000000000 --- a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/build.sbt +++ /dev/null @@ -1 +0,0 @@ -incOptions := incOptions.value.withNameHashing(true) diff --git a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/changes/A.scala b/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/changes/A.scala deleted file mode 100644 index b473714fa..000000000 --- a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/changes/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def asdf = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/test b/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/test deleted file mode 100644 index d4d386615..000000000 --- a/bridge/src/sbt-test/source-dependencies/backtick-quoted-names/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# rename def with symbolic name (`=`) -$ copy-file changes/A.scala A.scala - -# Both A.scala and B.scala should be recompiled, producing a compile error --> compile diff --git a/bridge/src/sbt-test/source-dependencies/binary/changes/Break.scala b/bridge/src/sbt-test/source-dependencies/binary/changes/Break.scala deleted file mode 100644 index 88d8ef9a3..000000000 --- a/bridge/src/sbt-test/source-dependencies/binary/changes/Break.scala +++ /dev/null @@ -1 +0,0 @@ -object Break
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/binary/dep/A.scala b/bridge/src/sbt-test/source-dependencies/binary/dep/A.scala deleted file mode 100644 index 91d3855f6..000000000 --- a/bridge/src/sbt-test/source-dependencies/binary/dep/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - val x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/binary/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/binary/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/binary/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/binary/project/P.scala b/bridge/src/sbt-test/source-dependencies/binary/project/P.scala deleted file mode 100644 index d5d84e5a4..000000000 --- a/bridge/src/sbt-test/source-dependencies/binary/project/P.scala +++ /dev/null @@ -1,10 +0,0 @@ -import sbt._ -import Keys._ - -object B extends Build -{ - lazy val dep = Project("dep", file("dep")) - lazy val use = Project("use", file("use")) settings( - unmanagedJars in Compile <+= packageBin in (dep, Compile) map Attributed.blank - ) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/binary/test b/bridge/src/sbt-test/source-dependencies/binary/test deleted file mode 100644 index 058c5492c..000000000 --- a/bridge/src/sbt-test/source-dependencies/binary/test +++ /dev/null @@ -1,6 +0,0 @@ -# done this way because last modified times often have ~1s resolution -> use/package -$ sleep 2000 - -$ copy-file changes/Break.scala dep/A.scala --> use/compile diff --git a/bridge/src/sbt-test/source-dependencies/binary/use/B.scala b/bridge/src/sbt-test/source-dependencies/binary/use/B.scala deleted file mode 100644 index 5f371ab41..000000000 --- a/bridge/src/sbt-test/source-dependencies/binary/use/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val y = A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/by-name/A.scala b/bridge/src/sbt-test/source-dependencies/by-name/A.scala deleted file mode 100644 index 46ec286ff..000000000 --- a/bridge/src/sbt-test/source-dependencies/by-name/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - def x(i: => String) = () -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/by-name/B.scala b/bridge/src/sbt-test/source-dependencies/by-name/B.scala deleted file mode 100644 index a06f3a186..000000000 --- a/bridge/src/sbt-test/source-dependencies/by-name/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B -{ - val x = A.x("3") -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/by-name/changes/A.scala b/bridge/src/sbt-test/source-dependencies/by-name/changes/A.scala deleted file mode 100644 index 0d12dd477..000000000 --- a/bridge/src/sbt-test/source-dependencies/by-name/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - def x(i: Function0[String]) = () -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/by-name/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/by-name/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/by-name/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/by-name/test b/bridge/src/sbt-test/source-dependencies/by-name/test deleted file mode 100644 index 4306d3bcc..000000000 --- a/bridge/src/sbt-test/source-dependencies/by-name/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# change => Int to Function0 -$ copy-file changes/A.scala A.scala - -# Both A.scala and B.scala need to be recompiled because the type has changed --> compile diff --git a/bridge/src/sbt-test/source-dependencies/canon/Use.scala b/bridge/src/sbt-test/source-dependencies/canon/Use.scala deleted file mode 100644 index fe9e21714..000000000 --- a/bridge/src/sbt-test/source-dependencies/canon/Use.scala +++ /dev/null @@ -1,3 +0,0 @@ -object Use { - val x = A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/canon/actual/A.java b/bridge/src/sbt-test/source-dependencies/canon/actual/A.java deleted file mode 100644 index 693c5b932..000000000 --- a/bridge/src/sbt-test/source-dependencies/canon/actual/A.java +++ /dev/null @@ -1,4 +0,0 @@ -// this is the source for the compiled class in a.jar -public class A { - public static final int x = 3; -} diff --git a/bridge/src/sbt-test/source-dependencies/canon/actual/a.jar b/bridge/src/sbt-test/source-dependencies/canon/actual/a.jar Binary files differdeleted file mode 100644 index 5c63ca5e9..000000000 --- a/bridge/src/sbt-test/source-dependencies/canon/actual/a.jar +++ /dev/null diff --git a/bridge/src/sbt-test/source-dependencies/canon/build.sbt b/bridge/src/sbt-test/source-dependencies/canon/build.sbt deleted file mode 100644 index d23dff705..000000000 --- a/bridge/src/sbt-test/source-dependencies/canon/build.sbt +++ /dev/null @@ -1,10 +0,0 @@ -import complete.DefaultParsers._ - -val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.") - -checkIterations := { - val expected: Int = (Space ~> NatBasic).parsed - val actual: Int = (compile in Compile).value.compilations.allCompilations.size - assert(expected == actual, s"Expected $expected compilations, got $actual") -} - diff --git a/bridge/src/sbt-test/source-dependencies/canon/lib/a.jar b/bridge/src/sbt-test/source-dependencies/canon/lib/a.jar deleted file mode 120000 index 9fa4156a8..000000000 --- a/bridge/src/sbt-test/source-dependencies/canon/lib/a.jar +++ /dev/null @@ -1 +0,0 @@ -../actual/a.jar
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/canon/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/canon/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/canon/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/canon/test b/bridge/src/sbt-test/source-dependencies/canon/test deleted file mode 100644 index 13caf4871..000000000 --- a/bridge/src/sbt-test/source-dependencies/canon/test +++ /dev/null @@ -1,10 +0,0 @@ -# Tests that classpath entries that are different than their canonical representation are -# handled properly. In particular, a symlink from lib/a.jar to lib/../actual/a.jar.0 is -# available on the classpath and read by scalac. scalac 2.10.x does not interpret .jar.0 -# as a jar, so if sbt passes the canonical path, it will not be read. -# This also verifies that compilation does not get repeatedly triggered by a mismatch in -# paths. - -> compile -> compile -> checkIterations 1
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/compactify/build.sbt b/bridge/src/sbt-test/source-dependencies/compactify/build.sbt deleted file mode 100644 index f44ca0862..000000000 --- a/bridge/src/sbt-test/source-dependencies/compactify/build.sbt +++ /dev/null @@ -1,9 +0,0 @@ -TaskKey[Unit]("output-empty") <<= classDirectory in Configurations.Compile map { outputDirectory => - def classes = (outputDirectory ** "*.class").get - if(!classes.isEmpty) sys.error("Classes existed:\n\t" + classes.mkString("\n\t")) else () -} - -// apparently Travis CI stopped allowing long file names -// it fails with the default setting of 255 characters so -// we have to set lower limit ourselves -scalacOptions ++= Seq("-Xmax-classfile-name", "240") diff --git a/bridge/src/sbt-test/source-dependencies/compactify/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/compactify/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/compactify/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/compactify/src/main/scala/For.scala b/bridge/src/sbt-test/source-dependencies/compactify/src/main/scala/For.scala deleted file mode 100644 index 5d1b8c4db..000000000 --- a/bridge/src/sbt-test/source-dependencies/compactify/src/main/scala/For.scala +++ /dev/null @@ -1,44 +0,0 @@ -package somereallylongpackagenamethatwilltestsbtsanalyzer_somereallylongpackagenamethatwilltestsbtsanalyzer.somereallylongpackagenamethatwilltestsbtsanalyzer - -object T -{ - val y = List(3) - for(a <- y; - b <- y; - c <- y; - d <- y; - e <- y; - f <- y; - g <- y; - h <- y; - i <- y; - j <- y; - k <- y; - l <- y; - m <- y; - n <- y; - o <- y; - p <- y; - q <- y; - r <- y; - s <- y; - t <- y; - u <- y; - v <- y; - w <- y; - x <- y; - yx <- y; - z <- y; - aa <- y; - bb <- y; - cc <- y; - dd <- y; - ee <- y; - ff <- y; - gg <- y; - hh<- y; - ii <- y; - jj <- y; - kk <- y - ) yield a + b + c + d + e -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/compactify/src/main/scala/Nested.scala b/bridge/src/sbt-test/source-dependencies/compactify/src/main/scala/Nested.scala deleted file mode 100644 index 798868d72..000000000 --- a/bridge/src/sbt-test/source-dependencies/compactify/src/main/scala/Nested.scala +++ /dev/null @@ -1,41 +0,0 @@ -package test - -object TopLevelModule1 -{ - object InnerModule1 - { - object InnerModule2 - { - trait Z { def q = 3 } - def x = 3 - } - } - class InnerClass1 - { - class InnerClass2 - { - val z = new TopLevelModule1.InnerClass2 - } - object InnerModule3 - { - val y = new TopLevel1 with InnerModule1.InnerModule2.Z { val x = 4 } - } - } - class InnerClass2 -} -class TopLevel1 -{ - object Inner1_1 -} -object TopLevel1 -{ - class Inner1_2 - object Inner1_2 -} - -object TopLevel2 -class TopLevel2 - -object TopLevel3 - -class TopLevel4
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/compactify/test b/bridge/src/sbt-test/source-dependencies/compactify/test deleted file mode 100644 index e2abf578b..000000000 --- a/bridge/src/sbt-test/source-dependencies/compactify/test +++ /dev/null @@ -1,8 +0,0 @@ -# Marked pending due to https://github.com/sbt/sbt/issues/1553 - -> output-empty -> compile --> output-empty -$ delete src/main/scala/For.scala src/main/scala/Nested.scala -> compile -> output-empty
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/constants/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/constants/changes/A1.scala deleted file mode 100644 index f67b6f474..000000000 --- a/bridge/src/sbt-test/source-dependencies/constants/changes/A1.scala +++ /dev/null @@ -1 +0,0 @@ -object A { final val x = 1 } diff --git a/bridge/src/sbt-test/source-dependencies/constants/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/constants/changes/A2.scala deleted file mode 100644 index 4f9396f13..000000000 --- a/bridge/src/sbt-test/source-dependencies/constants/changes/A2.scala +++ /dev/null @@ -1 +0,0 @@ -object A { final val x = 2 } diff --git a/bridge/src/sbt-test/source-dependencies/constants/changes/B.scala b/bridge/src/sbt-test/source-dependencies/constants/changes/B.scala deleted file mode 100644 index 058527993..000000000 --- a/bridge/src/sbt-test/source-dependencies/constants/changes/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B -{ - def main(args: Array[String]) = assert(args(0).toInt == A.x ) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/constants/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/constants/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/constants/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/constants/test b/bridge/src/sbt-test/source-dependencies/constants/test deleted file mode 100644 index 7a5ae5879..000000000 --- a/bridge/src/sbt-test/source-dependencies/constants/test +++ /dev/null @@ -1,12 +0,0 @@ -# Marked as pending, see https://github.com/sbt/sbt/issues/1543 -# Tests if source dependencies are tracked properly -# for compile-time constants (like final vals in top-level objects) -# see https://issues.scala-lang.org/browse/SI-7173 for details -# why compile-time constants can be tricky to track due to early inlining - -$ copy-file changes/B.scala B.scala - -$ copy-file changes/A1.scala A.scala -> run 1 -$ copy-file changes/A2.scala A.scala -> run 2 diff --git a/bridge/src/sbt-test/source-dependencies/default-params/A.scala b/bridge/src/sbt-test/source-dependencies/default-params/A.scala deleted file mode 100644 index 50baa662f..000000000 --- a/bridge/src/sbt-test/source-dependencies/default-params/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -object A -{ - def x(f: String, g: Int): Int = g - def x(f: Int, g: Int = 3): Int = g -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/default-params/B.scala b/bridge/src/sbt-test/source-dependencies/default-params/B.scala deleted file mode 100644 index 59a7159f9..000000000 --- a/bridge/src/sbt-test/source-dependencies/default-params/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B -{ - val y = A.x(5) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/default-params/changes/A.scala b/bridge/src/sbt-test/source-dependencies/default-params/changes/A.scala deleted file mode 100644 index b59015306..000000000 --- a/bridge/src/sbt-test/source-dependencies/default-params/changes/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -object A -{ - def x(f: String, g: Int = 3): Int = g - def x(f: Int, g: Int): Int = g -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/default-params/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/default-params/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/default-params/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/default-params/test b/bridge/src/sbt-test/source-dependencies/default-params/test deleted file mode 100644 index 1e674f8f6..000000000 --- a/bridge/src/sbt-test/source-dependencies/default-params/test +++ /dev/null @@ -1,9 +0,0 @@ -> compile - -# switch which 'x' method has a default for the second parameter in A -# this change is selected because of the encoding of default method names -$ copy-file changes/A.scala A.scala - -# Both A.scala and B.scala need to be recompiled because the parameter needs to be explicitly provided -# and it should be a compile error --> compile diff --git a/bridge/src/sbt-test/source-dependencies/dup-class/changes/A.scala b/bridge/src/sbt-test/source-dependencies/dup-class/changes/A.scala deleted file mode 100644 index 264775513..000000000 --- a/bridge/src/sbt-test/source-dependencies/dup-class/changes/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -package clear - -object A diff --git a/bridge/src/sbt-test/source-dependencies/dup-class/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/dup-class/changes/A2.scala deleted file mode 100644 index 264775513..000000000 --- a/bridge/src/sbt-test/source-dependencies/dup-class/changes/A2.scala +++ /dev/null @@ -1,3 +0,0 @@ -package clear - -object A diff --git a/bridge/src/sbt-test/source-dependencies/dup-class/changes/B.scala b/bridge/src/sbt-test/source-dependencies/dup-class/changes/B.scala deleted file mode 100644 index 50df7082c..000000000 --- a/bridge/src/sbt-test/source-dependencies/dup-class/changes/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -package clear - -object B diff --git a/bridge/src/sbt-test/source-dependencies/dup-class/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/dup-class/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/dup-class/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/dup-class/test b/bridge/src/sbt-test/source-dependencies/dup-class/test deleted file mode 100644 index 531553bb5..000000000 --- a/bridge/src/sbt-test/source-dependencies/dup-class/test +++ /dev/null @@ -1,6 +0,0 @@ -$ copy-file changes/A.scala A.scala -> compile -$ copy-file changes/A2.scala B.scala --> compile -$ copy-file changes/B.scala B.scala -> compile diff --git a/bridge/src/sbt-test/source-dependencies/empty-a/changes/A.scala b/bridge/src/sbt-test/source-dependencies/empty-a/changes/A.scala deleted file mode 100644 index 0c52ad165..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-a/changes/A.scala +++ /dev/null @@ -1,6 +0,0 @@ -package a - -object A -{ - def x = "A" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/empty-a/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/empty-a/changes/A2.scala deleted file mode 100644 index 2e85f9808..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-a/changes/A2.scala +++ /dev/null @@ -1,6 +0,0 @@ -/*package a - -object A -{ - def x = "A" -}*/
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/empty-a/changes/B.scala b/bridge/src/sbt-test/source-dependencies/empty-a/changes/B.scala deleted file mode 100644 index 7865ddcec..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-a/changes/B.scala +++ /dev/null @@ -1,6 +0,0 @@ -package a - -class B -{ - def x = A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/empty-a/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/empty-a/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-a/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/empty-a/test b/bridge/src/sbt-test/source-dependencies/empty-a/test deleted file mode 100644 index d0f0b25a8..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-a/test +++ /dev/null @@ -1,19 +0,0 @@ -$ copy-file changes/A.scala src/main/scala/A.scala -> compile - -$ copy-file changes/A2.scala src/main/scala/A.scala -> compile - -$ copy-file changes/B.scala src/main/scala/B.scala --> compile - -$ copy-file changes/A.scala src/main/scala/A.scala -> compile - -$ delete src/main/scala/B.scala -$ copy-file changes/A2.scala src/main/scala/A.scala -> compile - -$ copy-file changes/A.scala src/main/scala/A.scala -$ copy-file changes/B.scala src/main/scala/B.scala -> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/empty-package/changes/Define1.scala b/bridge/src/sbt-test/source-dependencies/empty-package/changes/Define1.scala deleted file mode 100644 index 9317a8425..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-package/changes/Define1.scala +++ /dev/null @@ -1,3 +0,0 @@ -package a.pkgName - -object Test diff --git a/bridge/src/sbt-test/source-dependencies/empty-package/changes/Define2.scala b/bridge/src/sbt-test/source-dependencies/empty-package/changes/Define2.scala deleted file mode 100644 index ed2d7ae8a..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-package/changes/Define2.scala +++ /dev/null @@ -1,3 +0,0 @@ -package pkgName - -object Test diff --git a/bridge/src/sbt-test/source-dependencies/empty-package/changes/Use.scala b/bridge/src/sbt-test/source-dependencies/empty-package/changes/Use.scala deleted file mode 100644 index b4d87c711..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-package/changes/Use.scala +++ /dev/null @@ -1,7 +0,0 @@ -package a - -import pkgName.Test - -object Use { - val x = Test -} diff --git a/bridge/src/sbt-test/source-dependencies/empty-package/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/empty-package/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-package/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/empty-package/test b/bridge/src/sbt-test/source-dependencies/empty-package/test deleted file mode 100644 index 718e7f125..000000000 --- a/bridge/src/sbt-test/source-dependencies/empty-package/test +++ /dev/null @@ -1,12 +0,0 @@ -$ copy-file changes/Define1.scala Define.scala -$ copy-file changes/Use.scala Use.scala -> compile - -$ copy-file changes/Define2.scala Define.scala -> compile - -$ delete Define.scala --> compile - -$ copy-file changes/Define1.scala Define.scala -> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/erasure/A.scala b/bridge/src/sbt-test/source-dependencies/erasure/A.scala deleted file mode 100644 index 63b240ac6..000000000 --- a/bridge/src/sbt-test/source-dependencies/erasure/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def x: List[Int] = List(3) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/erasure/B.scala b/bridge/src/sbt-test/source-dependencies/erasure/B.scala deleted file mode 100644 index 1c636101f..000000000 --- a/bridge/src/sbt-test/source-dependencies/erasure/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val y: List[Int] = A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/erasure/changes/A.scala b/bridge/src/sbt-test/source-dependencies/erasure/changes/A.scala deleted file mode 100644 index c1bceae79..000000000 --- a/bridge/src/sbt-test/source-dependencies/erasure/changes/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def x: List[String] = List("3") -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/erasure/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/erasure/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/erasure/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/erasure/test b/bridge/src/sbt-test/source-dependencies/erasure/test deleted file mode 100644 index aaca5a2e3..000000000 --- a/bridge/src/sbt-test/source-dependencies/erasure/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile - -$ copy-file changes/A.scala A.scala --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/export-jars/changes/A1.scala deleted file mode 100644 index 210adf865..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/changes/A1.scala +++ /dev/null @@ -1 +0,0 @@ -object A { val x = 1 } diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/export-jars/changes/A2.scala deleted file mode 100644 index 799400c8c..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/changes/A2.scala +++ /dev/null @@ -1 +0,0 @@ -object A { val x = 2 } diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/changes/A3.scala b/bridge/src/sbt-test/source-dependencies/export-jars/changes/A3.scala deleted file mode 100644 index 25fb93965..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/changes/A3.scala +++ /dev/null @@ -1 +0,0 @@ -object A { def x = 3 } diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/changes/B.scala b/bridge/src/sbt-test/source-dependencies/export-jars/changes/B.scala deleted file mode 100644 index 058527993..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/changes/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B -{ - def main(args: Array[String]) = assert(args(0).toInt == A.x ) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/changes/build2.sbt b/bridge/src/sbt-test/source-dependencies/export-jars/changes/build2.sbt deleted file mode 100644 index 0f5735bc8..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/changes/build2.sbt +++ /dev/null @@ -1 +0,0 @@ -exportJars := true
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/project/Build.scala b/bridge/src/sbt-test/source-dependencies/export-jars/project/Build.scala deleted file mode 100644 index 4a783acbe..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/project/Build.scala +++ /dev/null @@ -1,7 +0,0 @@ -import sbt._ - -object Build extends Build -{ - lazy val root = Project("root", file(".")) dependsOn(a) - lazy val a = Project("a", file("a")) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/export-jars/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/export-jars/test b/bridge/src/sbt-test/source-dependencies/export-jars/test deleted file mode 100644 index e06ce1ee5..000000000 --- a/bridge/src/sbt-test/source-dependencies/export-jars/test +++ /dev/null @@ -1,27 +0,0 @@ -$ copy-file changes/B.scala B.scala - -$ copy-file changes/A1.scala a/A.scala -> run 1 -$ copy-file changes/A2.scala a/A.scala - -# done this way because last modified times often have ~1s resolution -$ sleep 2000 -> run 2 -$ copy-file changes/A3.scala a/A.scala - -$ sleep 2000 -> run 3 - -$ copy-file changes/build2.sbt build.sbt -> reload - -$ copy-file changes/A1.scala a/A.scala -> run 1 -$ copy-file changes/A2.scala a/A.scala - -$ sleep 2000 -> run 2 -$ copy-file changes/A3.scala a/A.scala - -$ sleep 2000 -> run 3 diff --git a/bridge/src/sbt-test/source-dependencies/ext/A.scala b/bridge/src/sbt-test/source-dependencies/ext/A.scala deleted file mode 100644 index ad9931075..000000000 --- a/bridge/src/sbt-test/source-dependencies/ext/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -import sun.net.spi.nameservice.dns.DNSNameService - -object A { - val x = new DNSNameService -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/ext/build.sbt b/bridge/src/sbt-test/source-dependencies/ext/build.sbt deleted file mode 100644 index 8aaec76ec..000000000 --- a/bridge/src/sbt-test/source-dependencies/ext/build.sbt +++ /dev/null @@ -1,9 +0,0 @@ -import complete.DefaultParsers._ - -val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.") - -checkIterations := { - val expected: Int = (Space ~> NatBasic).parsed - val actual: Int = (compile in Compile).value.compilations.allCompilations.size - assert(expected == actual, s"Expected $expected compilations, got $actual") -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/ext/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/ext/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/ext/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/ext/test b/bridge/src/sbt-test/source-dependencies/ext/test deleted file mode 100644 index 2b01a3de7..000000000 --- a/bridge/src/sbt-test/source-dependencies/ext/test +++ /dev/null @@ -1,7 +0,0 @@ -# initial compilation -> checkIterations 1 - -# no further compilation should be necessary, since nothing changed -# previously, a dependency on a jar in <java.home>lib/ext/ would -# always force recompilation -> checkIterations 1
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/false-error/A.scala b/bridge/src/sbt-test/source-dependencies/false-error/A.scala deleted file mode 100644 index 64675b5e3..000000000 --- a/bridge/src/sbt-test/source-dependencies/false-error/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A { - val x = 3 - val z: Int = B.y -} diff --git a/bridge/src/sbt-test/source-dependencies/false-error/B.scala b/bridge/src/sbt-test/source-dependencies/false-error/B.scala deleted file mode 100644 index 756aeacf6..000000000 --- a/bridge/src/sbt-test/source-dependencies/false-error/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val y = A.x -} diff --git a/bridge/src/sbt-test/source-dependencies/false-error/changes/A.scala b/bridge/src/sbt-test/source-dependencies/false-error/changes/A.scala deleted file mode 100644 index b2c9dfb26..000000000 --- a/bridge/src/sbt-test/source-dependencies/false-error/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A { - val x = "3" - val z: String = B.y -} diff --git a/bridge/src/sbt-test/source-dependencies/false-error/pending b/bridge/src/sbt-test/source-dependencies/false-error/pending deleted file mode 100644 index 80c8ec9bf..000000000 --- a/bridge/src/sbt-test/source-dependencies/false-error/pending +++ /dev/null @@ -1,5 +0,0 @@ -> compile - -$ copy-file changes/A.scala A.scala - -> compile diff --git a/bridge/src/sbt-test/source-dependencies/false-error/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/false-error/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/false-error/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/fbounded-existentials/fbounds.scala b/bridge/src/sbt-test/source-dependencies/fbounded-existentials/fbounds.scala deleted file mode 100644 index 60fe40879..000000000 --- a/bridge/src/sbt-test/source-dependencies/fbounded-existentials/fbounds.scala +++ /dev/null @@ -1,10 +0,0 @@ -class Dep { - // The API representation for `bla`'s result type contains a cycle - // (an existential's type variable's bound is the existential type itself) - // This results in a stack overflow while showing the API diff. - // Note that the actual result type in the compiler is not cyclic - // (the f-bounded existential for Comparable is truncated) - def bla(c: Boolean) = if (c) new Value else "bla" -} - -class Value extends java.lang.Comparable[Value] { def compareTo(that: Value): Int = 1 }
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/fbounded-existentials/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/fbounded-existentials/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/fbounded-existentials/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/fbounded-existentials/test b/bridge/src/sbt-test/source-dependencies/fbounded-existentials/test deleted file mode 100644 index 5df2af1f3..000000000 --- a/bridge/src/sbt-test/source-dependencies/fbounded-existentials/test +++ /dev/null @@ -1 +0,0 @@ -> compile diff --git a/bridge/src/sbt-test/source-dependencies/implicit-params/A.scala b/bridge/src/sbt-test/source-dependencies/implicit-params/A.scala deleted file mode 100644 index 598d266d4..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-params/A.scala +++ /dev/null @@ -1,6 +0,0 @@ -class A -{ - implicit def e: E = new E - def x(i: Int)(implicit y: E): String = "" -} -class E
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/implicit-params/B.scala b/bridge/src/sbt-test/source-dependencies/implicit-params/B.scala deleted file mode 100644 index 3273cdceb..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-params/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B extends A -{ - val y = x(3) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/implicit-params/changes/A.scala b/bridge/src/sbt-test/source-dependencies/implicit-params/changes/A.scala deleted file mode 100644 index 2de2c62ee..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-params/changes/A.scala +++ /dev/null @@ -1,6 +0,0 @@ -class A -{ - implicit def e: E = new E - def x(i: Int)(y: E): String = "" -} -class E
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/implicit-params/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/implicit-params/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-params/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-params/test b/bridge/src/sbt-test/source-dependencies/implicit-params/test deleted file mode 100644 index 5a2bcc0f4..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-params/test +++ /dev/null @@ -1,8 +0,0 @@ -> compile - -# make implicit parameters in A.x be explicit -$ copy-file changes/A.scala A.scala - -# Both A.scala and B.scala need to be recompiled because the parameter section is no longer implicit -# and it should be a compile error --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/A1.scala deleted file mode 100644 index 5a58c097b..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/A1.scala +++ /dev/null @@ -1,2 +0,0 @@ -trait A -object A diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/A2.scala deleted file mode 100644 index 8a0b629bc..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/A2.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait A -object A { - implicit def m[A]: M[A] = ??? -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/B.scala b/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/B.scala deleted file mode 100644 index c49ed55ad..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/B.scala +++ /dev/null @@ -1,2 +0,0 @@ - -trait B extends A diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/C.scala b/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/C.scala deleted file mode 100644 index 7fd803222..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -object Test { - implicitly[M[B]] -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/M.scala b/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/M.scala deleted file mode 100644 index 9464f4238..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/changes/M.scala +++ /dev/null @@ -1,4 +0,0 @@ -class M[A](a: A) -object M { - implicit def m[A]: M[A] = ??? -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/test b/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/test deleted file mode 100644 index 701b2c9a5..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search-companion-scope/test +++ /dev/null @@ -1,12 +0,0 @@ -# Tests if dependencies on implicit scope are tracked properly -$ copy-file changes/A1.scala A.scala -$ copy-file changes/B.scala B.scala -$ copy-file changes/M.scala M.scala -$ copy-file changes/C.scala C.scala -> compile - -$ copy-file changes/A2.scala A.scala --> compile - -> clean --> compile diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/implicit-search/changes/A1.scala deleted file mode 100644 index 7aa91d096..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/A1.scala +++ /dev/null @@ -1 +0,0 @@ -object A diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/implicit-search/changes/A2.scala deleted file mode 100644 index 45930d594..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/A2.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - val x = 1 -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/B.scala b/bridge/src/sbt-test/source-dependencies/implicit-search/changes/B.scala deleted file mode 100644 index 3e5db4c7e..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B { - implicit val x: Ordering[Int] = ??? -} - diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/C.scala b/bridge/src/sbt-test/source-dependencies/implicit-search/changes/C.scala deleted file mode 100644 index bdf19dd1d..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search/changes/C.scala +++ /dev/null @@ -1,6 +0,0 @@ -object C { - import A._, B._ - implicitly[Ordering[Int]] - - def main(args: Array[String]): Unit = () -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/implicit-search/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit-search/test b/bridge/src/sbt-test/source-dependencies/implicit-search/test deleted file mode 100644 index 1b73c1fe6..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit-search/test +++ /dev/null @@ -1,9 +0,0 @@ -$ copy-file changes/A1.scala A.scala -$ copy-file changes/B.scala B.scala -$ copy-file changes/C.scala C.scala -> compile --> run - -$ copy-file changes/A2.scala A.scala -> compile --> run diff --git a/bridge/src/sbt-test/source-dependencies/implicit/A.scala b/bridge/src/sbt-test/source-dependencies/implicit/A.scala deleted file mode 100644 index 765f66013..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -class A -{ - implicit def x(i: Int): String = i.toString -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/implicit/B.scala b/bridge/src/sbt-test/source-dependencies/implicit/B.scala deleted file mode 100644 index ec0200dfa..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B extends A -{ - val x: String = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/implicit/changes/A.scala b/bridge/src/sbt-test/source-dependencies/implicit/changes/A.scala deleted file mode 100644 index 24f8e4069..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -class A -{ - def x(i: Int): String = i.toString -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/implicit/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/implicit/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/implicit/test b/bridge/src/sbt-test/source-dependencies/implicit/test deleted file mode 100644 index 73aaab1d9..000000000 --- a/bridge/src/sbt-test/source-dependencies/implicit/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# change A.x to be implicit -$ copy-file changes/A.scala A.scala - -# Both A.scala and B.scala need to be recompiled because a new implicit is available --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/import-class/A.scala b/bridge/src/sbt-test/source-dependencies/import-class/A.scala deleted file mode 100644 index a93bbe535..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-class/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -package a - -class A diff --git a/bridge/src/sbt-test/source-dependencies/import-class/B.scala b/bridge/src/sbt-test/source-dependencies/import-class/B.scala deleted file mode 100644 index 0489f4a26..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-class/B.scala +++ /dev/null @@ -1 +0,0 @@ -import a.A diff --git a/bridge/src/sbt-test/source-dependencies/import-class/changes/A.scala b/bridge/src/sbt-test/source-dependencies/import-class/changes/A.scala deleted file mode 100644 index 2a93cdef5..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-class/changes/A.scala +++ /dev/null @@ -1 +0,0 @@ -package a diff --git a/bridge/src/sbt-test/source-dependencies/import-class/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/import-class/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-class/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/import-class/test b/bridge/src/sbt-test/source-dependencies/import-class/test deleted file mode 100644 index 7679ba52c..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-class/test +++ /dev/null @@ -1,8 +0,0 @@ -> compile - -# remove class a.A -$ copy-file changes/A.scala A.scala - -# 'import a.A' 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/A.scala b/bridge/src/sbt-test/source-dependencies/import-package/A.scala deleted file mode 100644 index 1c94ccf3a..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-package/A.scala +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 10ee10d82..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-package/B.scala +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index d63f93ea4..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-package/changes/A.scala +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 5dc9851d5..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-package/pending +++ /dev/null @@ -1,8 +0,0 @@ -> 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 deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/import-package/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/A.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/A.java deleted file mode 100644 index 894125a7e..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/A.java +++ /dev/null @@ -1 +0,0 @@ -class A implements B.T<Integer>, E {} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/B.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/B.java deleted file mode 100644 index 6b54edc7d..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/B.java +++ /dev/null @@ -1,11 +0,0 @@ -public class B { - static interface T<X> extends C {} - - // not public, so this shouldn't be tracked as an inherited dependency - private class Q implements E<Integer> {} - - public void x(int i) { - // not public, not an inherited dependency - D j = new D() {}; - } -} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/C.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/C.java deleted file mode 100644 index 6c06f4033..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/C.java +++ /dev/null @@ -1 +0,0 @@ -interface C extends D {} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/D.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/D.java deleted file mode 100644 index 9455ef5b0..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/D.java +++ /dev/null @@ -1 +0,0 @@ -interface D extends G.P {} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/E.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/E.java deleted file mode 100644 index d5e4d6517..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/E.java +++ /dev/null @@ -1 +0,0 @@ -public interface E<T> {} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/F.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/F.java deleted file mode 100644 index e205778d5..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/F.java +++ /dev/null @@ -1,3 +0,0 @@ -public class F { - public C q() { return null; } -} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/G.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/G.java deleted file mode 100644 index ed3429f8c..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/G.java +++ /dev/null @@ -1,3 +0,0 @@ -public class G { - static interface P extends J {} -} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/J.java b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/J.java deleted file mode 100644 index 8aeeb05b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/J.java +++ /dev/null @@ -1 +0,0 @@ -public interface J {} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/build.sbt b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/build.sbt deleted file mode 100644 index c25b54921..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/build.sbt +++ /dev/null @@ -1,30 +0,0 @@ -// this test is specific to the old incremental compilation algorithm -incOptions := incOptions.value.withNameHashing(false) - -lazy val verifyDeps = taskKey[Unit]("verify inherited dependencies are properly extracted") - -verifyDeps := { - val a = compile.in(Compile).value - same(a.relations.publicInherited.internal.forwardMap, expectedDeps.forwardMap) -} - -lazy val expected = Seq( - "A" -> Seq("C", "D", "E", "G", "J"), - "B" -> Seq("C", "D", "G", "J"), - "C" -> Seq("D", "G", "J"), - "D" -> Seq("G", "J"), - "E" -> Seq(), - "F" -> Seq(), - "G" -> Seq("J"), - "J" -> Seq() -) -lazy val pairs = - expected.map { case (from,tos) => - (toFile(from), tos.map(toFile)) - } -lazy val expectedDeps = (Relation.empty[File,File] /: pairs) { case (r, (x,ys)) => r + (x,ys) } -def toFile(s: String) = file(s + ".java").getAbsoluteFile - -def same[T](x: T, y: T): Unit = { - assert(x == y, s"\nActual: $x, \nExpected: $y") -} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/test b/bridge/src/sbt-test/source-dependencies/inherited-deps-java/test deleted file mode 100644 index e5d477601..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited-deps-java/test +++ /dev/null @@ -1 +0,0 @@ -> verifyDeps diff --git a/bridge/src/sbt-test/source-dependencies/inherited_type_params/A.scala b/bridge/src/sbt-test/source-dependencies/inherited_type_params/A.scala deleted file mode 100644 index 9de61dd5f..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited_type_params/A.scala +++ /dev/null @@ -1,7 +0,0 @@ - -trait Equal[-A] { - def equal(a1: A, a2: A): Boolean -} -object Test { - implicit def TraversableEqual[CC[X] <: collection.TraversableLike[X, CC[X]] with Traversable[X], A: Equal]: Equal[CC[A]] = error("") -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/inherited_type_params/build.sbt b/bridge/src/sbt-test/source-dependencies/inherited_type_params/build.sbt deleted file mode 100644 index a5982f901..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited_type_params/build.sbt +++ /dev/null @@ -1,7 +0,0 @@ -name := "test" - -TaskKey[Unit]("check-same") <<= compile in Configurations.Compile map { analysis => - analysis.apis.internal foreach { case (_, api) => - assert( xsbt.api.SameAPI(api.api, api.api) ) - } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/inherited_type_params/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/inherited_type_params/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited_type_params/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/inherited_type_params/test b/bridge/src/sbt-test/source-dependencies/inherited_type_params/test deleted file mode 100644 index 8434347c5..000000000 --- a/bridge/src/sbt-test/source-dependencies/inherited_type_params/test +++ /dev/null @@ -1 +0,0 @@ -> check-same
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/inline/A.scala b/bridge/src/sbt-test/source-dependencies/inline/A.scala deleted file mode 100644 index e889eef79..000000000 --- a/bridge/src/sbt-test/source-dependencies/inline/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def get: Int = 1 -} diff --git a/bridge/src/sbt-test/source-dependencies/inline/C.scala b/bridge/src/sbt-test/source-dependencies/inline/C.scala deleted file mode 100644 index caeb61535..000000000 --- a/bridge/src/sbt-test/source-dependencies/inline/C.scala +++ /dev/null @@ -1,5 +0,0 @@ -object C { - def main(args: Array[String]): Unit = { - val i: Int = B.getInline - } -} diff --git a/bridge/src/sbt-test/source-dependencies/inline/changes/B1.scala b/bridge/src/sbt-test/source-dependencies/inline/changes/B1.scala deleted file mode 100644 index 5685152b3..000000000 --- a/bridge/src/sbt-test/source-dependencies/inline/changes/B1.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B { - @inline def getInline: Int = - A.get -} diff --git a/bridge/src/sbt-test/source-dependencies/inline/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/inline/changes/B2.scala deleted file mode 100644 index 1de104357..000000000 --- a/bridge/src/sbt-test/source-dependencies/inline/changes/B2.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B { - @inline def getInline: Double = - A.get -} diff --git a/bridge/src/sbt-test/source-dependencies/inline/changes/B3.scala b/bridge/src/sbt-test/source-dependencies/inline/changes/B3.scala deleted file mode 100644 index 991bd17b8..000000000 --- a/bridge/src/sbt-test/source-dependencies/inline/changes/B3.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B { - @inline def getInline: Int = - sys.error("This is an expected failure when running C") -} diff --git a/bridge/src/sbt-test/source-dependencies/inline/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/inline/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/inline/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/inline/test b/bridge/src/sbt-test/source-dependencies/inline/test deleted file mode 100644 index 56fdb0486..000000000 --- a/bridge/src/sbt-test/source-dependencies/inline/test +++ /dev/null @@ -1,14 +0,0 @@ -$ copy-file changes/B1.scala B.scala -> compile - -$ copy-file changes/B2.scala B.scala -# Compilation of C.scala should fail because B.getInline now has type Double instead of Int --> compile - -$ copy-file changes/B1.scala B.scala -> run - -$ copy-file changes/B3.scala B.scala -# The body of B.getInline was changed so C.scala should be recompiled -# If it was recompiled, run should fail since B.getInline now throws an exception --> run diff --git a/bridge/src/sbt-test/source-dependencies/intermediate-error/A.scala b/bridge/src/sbt-test/source-dependencies/intermediate-error/A.scala deleted file mode 100644 index 392db0805..000000000 --- a/bridge/src/sbt-test/source-dependencies/intermediate-error/A.scala +++ /dev/null @@ -1,6 +0,0 @@ -object A -{ - def x = 3 - //def x: String = 3 - //def x: String = "3" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/intermediate-error/B.scala b/bridge/src/sbt-test/source-dependencies/intermediate-error/B.scala deleted file mode 100644 index 1a1e0c06f..000000000 --- a/bridge/src/sbt-test/source-dependencies/intermediate-error/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B -{ - val y: Int = A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/intermediate-error/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/intermediate-error/changes/A2.scala deleted file mode 100644 index ba9953954..000000000 --- a/bridge/src/sbt-test/source-dependencies/intermediate-error/changes/A2.scala +++ /dev/null @@ -1,6 +0,0 @@ -object A -{ - //def x = 3 - def x: String = 3 - //def x: String = "3" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/intermediate-error/changes/A3.scala b/bridge/src/sbt-test/source-dependencies/intermediate-error/changes/A3.scala deleted file mode 100644 index f020041ea..000000000 --- a/bridge/src/sbt-test/source-dependencies/intermediate-error/changes/A3.scala +++ /dev/null @@ -1,6 +0,0 @@ -object A -{ - //def x = 3 - //def x: String = 3 - def x: String = "3" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/intermediate-error/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/intermediate-error/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/intermediate-error/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/intermediate-error/test b/bridge/src/sbt-test/source-dependencies/intermediate-error/test deleted file mode 100644 index e3016a9c6..000000000 --- a/bridge/src/sbt-test/source-dependencies/intermediate-error/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -$ copy-file changes/A2.scala A.scala --> compile - -$ copy-file changes/A3.scala A.scala --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/Outer.java b/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/Outer.java deleted file mode 100644 index 0cf8276a9..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/Outer.java +++ /dev/null @@ -1 +0,0 @@ -public class Outer { private class T extends Thread {} }
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/build.sbt b/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/build.sbt deleted file mode 100644 index 1b1ddefb9..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/build.sbt +++ /dev/null @@ -1 +0,0 @@ -incOptions := incOptions.value.withNameHashing(true).withApiDebug(true) diff --git a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/test b/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/test deleted file mode 100644 index 5df2af1f3..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-analysis-serialization-error/test +++ /dev/null @@ -1 +0,0 @@ -> compile diff --git a/bridge/src/sbt-test/source-dependencies/java-basic/changes/A.java b/bridge/src/sbt-test/source-dependencies/java-basic/changes/A.java deleted file mode 100644 index c84f997f4..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-basic/changes/A.java +++ /dev/null @@ -1,6 +0,0 @@ -package a; - -public class A -{ - public static int x() { return 3; } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-basic/changes/A2.java b/bridge/src/sbt-test/source-dependencies/java-basic/changes/A2.java deleted file mode 100644 index 36270f805..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-basic/changes/A2.java +++ /dev/null @@ -1,6 +0,0 @@ -package a.b; - -public class A -{ - public static int x() { return 3; } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-basic/changes/B1.java b/bridge/src/sbt-test/source-dependencies/java-basic/changes/B1.java deleted file mode 100644 index ec9a67e1a..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-basic/changes/B1.java +++ /dev/null @@ -1,6 +0,0 @@ -package a.b; - -public class B -{ - public int y() { return 3; } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-basic/changes/B2.java b/bridge/src/sbt-test/source-dependencies/java-basic/changes/B2.java deleted file mode 100644 index 551900114..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-basic/changes/B2.java +++ /dev/null @@ -1,6 +0,0 @@ -package a.b; - -public class B -{ - public int y() { return a.A.x(); } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-basic/changes/B3.java b/bridge/src/sbt-test/source-dependencies/java-basic/changes/B3.java deleted file mode 100644 index 1ec729b74..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-basic/changes/B3.java +++ /dev/null @@ -1,6 +0,0 @@ -package a.b; - -public class B -{ - public static void main(String[] args) {} -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-basic/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/java-basic/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-basic/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/java-basic/test b/bridge/src/sbt-test/source-dependencies/java-basic/test deleted file mode 100644 index 9dac40735..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-basic/test +++ /dev/null @@ -1,45 +0,0 @@ -# Basic test for Java dependency tracking -> 'eval System.setProperty("xsbt.inc.debug", "true")' - -# A is a basic Java file with no dependencies. Just a basic check for Java compilation -$ copy-file changes/A.java src/main/java/a/A.java -> compile - -# A2 is a basic Java file with no dependencies. This is added to verify -# that classes are properly mapped back to their source. -# (There are two files named A.java now, one in a/ and one in a/b) -$ copy-file changes/A2.java src/main/java/a/b/A.java -> compile - -# This adds B, another basic Java file with no dependencies -$ copy-file changes/B1.java src/main/java/a/b/B.java -> compile - -# Now, modify B so that it depends on a.A -# This ensures that dependencies on a source not included in the compilation -# (a/A.java has not changed) are tracked -$ copy-file changes/B2.java src/main/java/a/b/B.java -> compile - -# Remove a.b.A and there should be no problem compiling, since B should -# have recorded a dependency on a.A and not a.b.A -$ delete src/main/java/a/b/A.java -> compile - -# Remove a.A and B should be recompiled if the dependency on a.A was properly -# recorded. This should be a compile error, since we haven't updated B to not -# depend on A -$ delete src/main/java/a/A.java --> compile - -# Replace B with a new B that doesn't depend on a.A and so it should compile -# It shouldn't run though, because it doesn't have a main method -$ copy-file changes/B1.java src/main/java/a/b/B.java -> compile --> run - - -# Replace B with a new B that has a main method and should therefore run -# if the main method was properly detected -$ copy-file changes/B3.java src/main/java/a/b/B.java -> run
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/A.java b/bridge/src/sbt-test/source-dependencies/java-generic-workaround/A.java deleted file mode 100644 index 7ac3d1a41..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/A.java +++ /dev/null @@ -1,7 +0,0 @@ - -public class A<T> { - class B { - class C { - } - } -} diff --git a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/DefaultTreeTableSorter.java b/bridge/src/sbt-test/source-dependencies/java-generic-workaround/DefaultTreeTableSorter.java deleted file mode 100644 index eec11ccea..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/DefaultTreeTableSorter.java +++ /dev/null @@ -1,15 +0,0 @@ -import javax.swing.DefaultRowSorter; -import javax.swing.tree.TreeModel; -import javax.swing.tree.TreePath; - -public class DefaultTreeTableSorter<T extends TreeModel, C extends TreeColumnModel, I> - implements TreeTableSorter<T,C>, TreeTableSorter.SortCycle { - - public class NodeSorter extends DefaultRowSorter<T,I> implements SortCycle { - - protected TreeTableWrapper getTreeTableModelWrapper() { - return (TreeTableWrapper)getModelWrapper(); - } - protected abstract class TreeTableWrapper extends ModelWrapper<T,I> {} - } -} diff --git a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/TreeColumnModel.java b/bridge/src/sbt-test/source-dependencies/java-generic-workaround/TreeColumnModel.java deleted file mode 100644 index bd66a91b8..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/TreeColumnModel.java +++ /dev/null @@ -1 +0,0 @@ -public interface TreeColumnModel {} diff --git a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/TreeTableSorter.java b/bridge/src/sbt-test/source-dependencies/java-generic-workaround/TreeTableSorter.java deleted file mode 100644 index 08b9f38f5..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/TreeTableSorter.java +++ /dev/null @@ -1,5 +0,0 @@ -import javax.swing.tree.TreeModel; - -public interface TreeTableSorter<T extends TreeModel, C extends TreeColumnModel> { - public interface SortCycle {} -} diff --git a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/java-generic-workaround/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/test b/bridge/src/sbt-test/source-dependencies/java-generic-workaround/test deleted file mode 100644 index 125967284..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-generic-workaround/test +++ /dev/null @@ -1,3 +0,0 @@ -# generic signatures fails to parse due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6476261 -# tests workaround for https://github.com/sbt/sbt/issues/1035 -> compile diff --git a/bridge/src/sbt-test/source-dependencies/java-mixed/JJ.java b/bridge/src/sbt-test/source-dependencies/java-mixed/JJ.java deleted file mode 100644 index 18d52ae30..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-mixed/JJ.java +++ /dev/null @@ -1,5 +0,0 @@ -public class JJ { - public static void main(String[] args) { - new S().foo("ahoy"); - } -} diff --git a/bridge/src/sbt-test/source-dependencies/java-mixed/build.sbt b/bridge/src/sbt-test/source-dependencies/java-mixed/build.sbt deleted file mode 100644 index 522224a38..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-mixed/build.sbt +++ /dev/null @@ -1 +0,0 @@ -compileOrder := CompileOrder.Mixed
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-mixed/changes/S1.scala b/bridge/src/sbt-test/source-dependencies/java-mixed/changes/S1.scala deleted file mode 100644 index 486f40262..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-mixed/changes/S1.scala +++ /dev/null @@ -1,3 +0,0 @@ -class S { - def foo(s:String): Unit = println("I am foo") -} diff --git a/bridge/src/sbt-test/source-dependencies/java-mixed/changes/S2.scala b/bridge/src/sbt-test/source-dependencies/java-mixed/changes/S2.scala deleted file mode 100644 index 63bc37d77..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-mixed/changes/S2.scala +++ /dev/null @@ -1,3 +0,0 @@ -class S { - def foo2(s:String): Unit = println("I am foo") -} diff --git a/bridge/src/sbt-test/source-dependencies/java-mixed/changes/build.sbt b/bridge/src/sbt-test/source-dependencies/java-mixed/changes/build.sbt deleted file mode 100644 index f4f9b5bf7..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-mixed/changes/build.sbt +++ /dev/null @@ -1 +0,0 @@ -compileOrder := CompileOrder.ScalaThenJava
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-mixed/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/java-mixed/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-mixed/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/java-mixed/test b/bridge/src/sbt-test/source-dependencies/java-mixed/test deleted file mode 100644 index 60402f1e6..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-mixed/test +++ /dev/null @@ -1,13 +0,0 @@ -$ copy-file changes/S1.scala S.scala -> compile -$ copy-file changes/S2.scala S.scala --> compile - -> clean -$ copy-file changes/build.sbt build.sbt -> reload - -$ copy-file changes/S1.scala S.scala -> compile -$ copy-file changes/S2.scala S.scala --> compile diff --git a/bridge/src/sbt-test/source-dependencies/java-static/changes/J1.java b/bridge/src/sbt-test/source-dependencies/java-static/changes/J1.java deleted file mode 100644 index cf042ce22..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-static/changes/J1.java +++ /dev/null @@ -1,4 +0,0 @@ -public class J -{ - public static final Integer x = 3; -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-static/changes/J2.java b/bridge/src/sbt-test/source-dependencies/java-static/changes/J2.java deleted file mode 100644 index 8ff2e24c6..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-static/changes/J2.java +++ /dev/null @@ -1,4 +0,0 @@ -public class J -{ - public static final String x = "3"; -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/java-static/changes/S.scala b/bridge/src/sbt-test/source-dependencies/java-static/changes/S.scala deleted file mode 100644 index 45436972b..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-static/changes/S.scala +++ /dev/null @@ -1,4 +0,0 @@ -object S -{ - val y: Int = J.x -} diff --git a/bridge/src/sbt-test/source-dependencies/java-static/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/java-static/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-static/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/java-static/test b/bridge/src/sbt-test/source-dependencies/java-static/test deleted file mode 100644 index 42890ca74..000000000 --- a/bridge/src/sbt-test/source-dependencies/java-static/test +++ /dev/null @@ -1,24 +0,0 @@ -# When a Java class is loaded from a class file and not parsed from a source file, scalac reports -# the statics as an object without a file and so the Analyzer must know to look for the -# object's linked class. -# This test verifies this happens. -# The test compiles a Java class with a static field. -# It then adds a Scala object that references the static field. Because the object only depends on a -# static member and because the Java source is not included in the compilation (since it didn't change), -# this triggers the special case above. - -# add and compile the Java source -$ copy-file changes/J1.java src/main/java/J.java -> compile - -# add and compile the Scala source -$ copy-file changes/S.scala src/main/scala/S.scala -> compile - -# change the Java source so that a compile error should occur if S.scala is also recompiled (which will happen if the dependency was properly recorded) -$ copy-file changes/J2.java src/main/java/J.java --> compile - -# verify it should have failed by doing a full recompilation -> clean --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/lazy-val/A.scala b/bridge/src/sbt-test/source-dependencies/lazy-val/A.scala deleted file mode 100644 index fc3870856..000000000 --- a/bridge/src/sbt-test/source-dependencies/lazy-val/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -class A -{ - val x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/lazy-val/B.scala b/bridge/src/sbt-test/source-dependencies/lazy-val/B.scala deleted file mode 100644 index 3ddfddb61..000000000 --- a/bridge/src/sbt-test/source-dependencies/lazy-val/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -class B extends A -{ - override val x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/lazy-val/changes/A.scala b/bridge/src/sbt-test/source-dependencies/lazy-val/changes/A.scala deleted file mode 100644 index 805901802..000000000 --- a/bridge/src/sbt-test/source-dependencies/lazy-val/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -class A -{ - lazy val x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/lazy-val/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/lazy-val/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/lazy-val/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/lazy-val/test b/bridge/src/sbt-test/source-dependencies/lazy-val/test deleted file mode 100644 index f870aaef3..000000000 --- a/bridge/src/sbt-test/source-dependencies/lazy-val/test +++ /dev/null @@ -1,6 +0,0 @@ -> compile - -# replace val x with lazy val x -$ copy-file changes/A.scala A.scala - --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/A.java b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/A.java deleted file mode 100644 index 2bce1ee78..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/A.java +++ /dev/null @@ -1,3 +0,0 @@ -public class A { - public Integer x() { return 3; } -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/B.java b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/B.java deleted file mode 100644 index 7e9bb5574..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/B.java +++ /dev/null @@ -1 +0,0 @@ -public class B extends A {} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/C.java b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/C.java deleted file mode 100644 index 042c2b2a3..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/C.java +++ /dev/null @@ -1 +0,0 @@ -public class C extends B {} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/D.java b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/D.java deleted file mode 100644 index 03e6ad740..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/D.java +++ /dev/null @@ -1,4 +0,0 @@ -public class D { - public static final C c = new C(); - public static String x() { return c.x().toString(); } -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/E.java b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/E.java deleted file mode 100644 index d28336ed5..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/E.java +++ /dev/null @@ -1,5 +0,0 @@ -public class E { - public static void main(String[] args) { - assert(D.x() == "3"); - } -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/build.sbt b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/build.sbt deleted file mode 100644 index d23dff705..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/build.sbt +++ /dev/null @@ -1,10 +0,0 @@ -import complete.DefaultParsers._ - -val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.") - -checkIterations := { - val expected: Int = (Space ~> NatBasic).parsed - val actual: Int = (compile in Compile).value.compilations.allCompilations.size - assert(expected == actual, s"Expected $expected compilations, got $actual") -} - diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/changes/A2.java b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/changes/A2.java deleted file mode 100644 index 610c20407..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/changes/A2.java +++ /dev/null @@ -1,3 +0,0 @@ -public class A { - public String x() { return "3"; } -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/test b/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/test deleted file mode 100644 index 85a7c97e9..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv-java/test +++ /dev/null @@ -1,9 +0,0 @@ -# 1 iteration from initial full compile -> run -$ copy-file changes/A2.java A.java - -# 1 iteration for the initial changes -# 1 iteration to recompile all descendents and direct dependencies -# no further iteration, because APIs of directs don't change -> run -> checkIterations 3 diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/A.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv/A.scala deleted file mode 100644 index a4f92f4fa..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -class A { - def x = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/B.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv/B.scala deleted file mode 100644 index a18aec3db..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/B.scala +++ /dev/null @@ -1 +0,0 @@ -class B extends A diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/C.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv/C.scala deleted file mode 100644 index f6f5bb28f..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/C.scala +++ /dev/null @@ -1 +0,0 @@ -class C extends B diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/D.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv/D.scala deleted file mode 100644 index 55959c2a9..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/D.scala +++ /dev/null @@ -1,4 +0,0 @@ -object D { - val c = new C - def x: String = c.x.toString -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/E.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv/E.scala deleted file mode 100644 index 23e0805a0..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/E.scala +++ /dev/null @@ -1,3 +0,0 @@ -object E extends dotty.runtime.LegacyApp { - assert(D.x == "3") -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/build.sbt b/bridge/src/sbt-test/source-dependencies/less-inter-inv/build.sbt deleted file mode 100644 index d23dff705..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/build.sbt +++ /dev/null @@ -1,10 +0,0 @@ -import complete.DefaultParsers._ - -val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.") - -checkIterations := { - val expected: Int = (Space ~> NatBasic).parsed - val actual: Int = (compile in Compile).value.compilations.allCompilations.size - assert(expected == actual, s"Expected $expected compilations, got $actual") -} - diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv/changes/A2.scala deleted file mode 100644 index acab4a1ae..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/changes/A2.scala +++ /dev/null @@ -1,3 +0,0 @@ -class A { - def x = "3" -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/less-inter-inv/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/less-inter-inv/test b/bridge/src/sbt-test/source-dependencies/less-inter-inv/test deleted file mode 100644 index c6df5698e..000000000 --- a/bridge/src/sbt-test/source-dependencies/less-inter-inv/test +++ /dev/null @@ -1,9 +0,0 @@ -# 1 iteration from initial full compile -> run -$ copy-file changes/A2.scala A.scala - -# 1 iteration for the initial changes -# 1 iteration to recompile all descendents and direct dependencies -# no further iteration, because APIs of directs don't change -> run -> checkIterations 3 diff --git a/bridge/src/sbt-test/source-dependencies/linearization/A.scala b/bridge/src/sbt-test/source-dependencies/linearization/A.scala deleted file mode 100644 index 69399d3fb..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - def x = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/linearization/B.scala b/bridge/src/sbt-test/source-dependencies/linearization/B.scala deleted file mode 100644 index 608b53052..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait B extends A { - override def x = super.x * 2 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/linearization/C.scala b/bridge/src/sbt-test/source-dependencies/linearization/C.scala deleted file mode 100644 index 3fbd747e0..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait C extends A { - override def x = super.x + 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/linearization/D.scala b/bridge/src/sbt-test/source-dependencies/linearization/D.scala deleted file mode 100644 index 7b46ebf97..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/D.scala +++ /dev/null @@ -1,2 +0,0 @@ -// define the order -trait D extends C with B
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/linearization/E.scala b/bridge/src/sbt-test/source-dependencies/linearization/E.scala deleted file mode 100644 index f69ea1d51..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/E.scala +++ /dev/null @@ -1,2 +0,0 @@ -// put a level in between D and its concrete class -trait E extends D diff --git a/bridge/src/sbt-test/source-dependencies/linearization/F.scala b/bridge/src/sbt-test/source-dependencies/linearization/F.scala deleted file mode 100644 index 6dda903f5..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/F.scala +++ /dev/null @@ -1,3 +0,0 @@ -object F extends E { - def main(args: Array[String]) = assert(x == args(0).toInt, x) -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/linearization/changes/D.scala b/bridge/src/sbt-test/source-dependencies/linearization/changes/D.scala deleted file mode 100644 index 84c173887..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/changes/D.scala +++ /dev/null @@ -1 +0,0 @@ -trait D extends B with C diff --git a/bridge/src/sbt-test/source-dependencies/linearization/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/linearization/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/linearization/test b/bridge/src/sbt-test/source-dependencies/linearization/test deleted file mode 100644 index e6078ebfb..000000000 --- a/bridge/src/sbt-test/source-dependencies/linearization/test +++ /dev/null @@ -1,13 +0,0 @@ -> compile - -# the value of F.x should be 16 -> run 16 - -# modify D.scala so that the linearization changes -$ copy-file changes/D.scala D.scala -# F.x becomes 11 -> compile - -# if F is recompiled, the value of x should be 11, otherwise it will still be 16 -# and this will fail -> run 11
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/named/A.scala b/bridge/src/sbt-test/source-dependencies/named/A.scala deleted file mode 100644 index 42afb874d..000000000 --- a/bridge/src/sbt-test/source-dependencies/named/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def x(zz: Int, yy: Int) = yy - zz -} diff --git a/bridge/src/sbt-test/source-dependencies/named/B.scala b/bridge/src/sbt-test/source-dependencies/named/B.scala deleted file mode 100644 index 5699c4db8..000000000 --- a/bridge/src/sbt-test/source-dependencies/named/B.scala +++ /dev/null @@ -1,7 +0,0 @@ -object B { - def main(args: Array[String]): Unit = - { - val result = A.x(zz = 3, yy = 4) - assert(result == args(0).toInt, result) - } -} diff --git a/bridge/src/sbt-test/source-dependencies/named/changes/A.scala b/bridge/src/sbt-test/source-dependencies/named/changes/A.scala deleted file mode 100644 index 04b150525..000000000 --- a/bridge/src/sbt-test/source-dependencies/named/changes/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def x(yy: Int, zz: Int) = yy - zz -} diff --git a/bridge/src/sbt-test/source-dependencies/named/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/named/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/named/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/named/test b/bridge/src/sbt-test/source-dependencies/named/test deleted file mode 100644 index 28f1c58d3..000000000 --- a/bridge/src/sbt-test/source-dependencies/named/test +++ /dev/null @@ -1,16 +0,0 @@ -# named parameters are only in 2.8 -#> ++2.8.0 - -> compile - -# result should be 1 -> run 1 - -# change order of arguments in A.x -$ copy-file changes/A.scala A.scala - -# Recompile -> compile - -# Should still get 1 and not -1 -> run 1 diff --git a/bridge/src/sbt-test/source-dependencies/nested-case-class/changes/A0.scala b/bridge/src/sbt-test/source-dependencies/nested-case-class/changes/A0.scala deleted file mode 100644 index cc6a53b6a..000000000 --- a/bridge/src/sbt-test/source-dependencies/nested-case-class/changes/A0.scala +++ /dev/null @@ -1,11 +0,0 @@ -package example - -class A { - case class B(x: Int) - def c = B -} -object A { - def main(args: Array[String]): Unit = { - (new A).c - } -} diff --git a/bridge/src/sbt-test/source-dependencies/nested-case-class/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/nested-case-class/changes/A1.scala deleted file mode 100644 index e71b1ef17..000000000 --- a/bridge/src/sbt-test/source-dependencies/nested-case-class/changes/A1.scala +++ /dev/null @@ -1,13 +0,0 @@ -package example - -class VC(val self: Int) extends AnyVal - -class A { - case class B(x: VC) - def c = B -} -object A { - def main(args: Array[String]): Unit = { - (new A).c - } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/nested-case-class/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/nested-case-class/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/nested-case-class/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/nested-case-class/test b/bridge/src/sbt-test/source-dependencies/nested-case-class/test deleted file mode 100644 index 28ed70321..000000000 --- a/bridge/src/sbt-test/source-dependencies/nested-case-class/test +++ /dev/null @@ -1,6 +0,0 @@ -$ copy-file changes/A0.scala A.scala -> run - -# The same test case, but involving value classes -$ copy-file changes/A1.scala A.scala -> run diff --git a/bridge/src/sbt-test/source-dependencies/new-cyclic/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/new-cyclic/changes/A2.scala deleted file mode 100644 index c530efeb4..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-cyclic/changes/A2.scala +++ /dev/null @@ -1 +0,0 @@ -trait A { val x = (new B).y } diff --git a/bridge/src/sbt-test/source-dependencies/new-cyclic/pending b/bridge/src/sbt-test/source-dependencies/new-cyclic/pending deleted file mode 100644 index 82b078e7d..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-cyclic/pending +++ /dev/null @@ -1,4 +0,0 @@ -> compile - -$ copy-file changes/A2.scala src/main/scala/A.scala --> compile diff --git a/bridge/src/sbt-test/source-dependencies/new-cyclic/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/new-cyclic/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-cyclic/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/new-cyclic/src/main/scala/A.scala b/bridge/src/sbt-test/source-dependencies/new-cyclic/src/main/scala/A.scala deleted file mode 100644 index d6d4ebdd9..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-cyclic/src/main/scala/A.scala +++ /dev/null @@ -1 +0,0 @@ -trait A { val x = "hello" } diff --git a/bridge/src/sbt-test/source-dependencies/new-cyclic/src/main/scala/B.scala b/bridge/src/sbt-test/source-dependencies/new-cyclic/src/main/scala/B.scala deleted file mode 100644 index 4fa74512d..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-cyclic/src/main/scala/B.scala +++ /dev/null @@ -1 +0,0 @@ -class B extends A { val y = x } diff --git a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/A1.java b/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/A1.java deleted file mode 100644 index b448538ae..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/A1.java +++ /dev/null @@ -1,2 +0,0 @@ -package a; -public class A { public static final int x = 3; } diff --git a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/B0.scala b/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/B0.scala deleted file mode 100644 index ddeafd32d..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/B0.scala +++ /dev/null @@ -1,2 +0,0 @@ -package b -object B { val x = 3 } diff --git a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/B1.scala b/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/B1.scala deleted file mode 100644 index 6f0f9f967..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/changes/B1.scala +++ /dev/null @@ -1,2 +0,0 @@ -package b -object B { val x = a.A.x } diff --git a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/new-pkg-dep/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/test b/bridge/src/sbt-test/source-dependencies/new-pkg-dep/test deleted file mode 100644 index 89251bcec..000000000 --- a/bridge/src/sbt-test/source-dependencies/new-pkg-dep/test +++ /dev/null @@ -1,8 +0,0 @@ -$ copy-file changes/B0.scala B.scala -> compile - -$ copy-file changes/A1.java A.java -> compile - -$ copy-file changes/B1.scala B.scala -> compile diff --git a/bridge/src/sbt-test/source-dependencies/override/A.scala b/bridge/src/sbt-test/source-dependencies/override/A.scala deleted file mode 100644 index 43b95b9e9..000000000 --- a/bridge/src/sbt-test/source-dependencies/override/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - def x: Int -} diff --git a/bridge/src/sbt-test/source-dependencies/override/B.scala b/bridge/src/sbt-test/source-dependencies/override/B.scala deleted file mode 100644 index c7569ba51..000000000 --- a/bridge/src/sbt-test/source-dependencies/override/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait B extends A { - override def x = 2 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/override/C.scala b/bridge/src/sbt-test/source-dependencies/override/C.scala deleted file mode 100644 index 24d656d4a..000000000 --- a/bridge/src/sbt-test/source-dependencies/override/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait C extends A { - def x = 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/override/D.scala b/bridge/src/sbt-test/source-dependencies/override/D.scala deleted file mode 100644 index 1f0d0a274..000000000 --- a/bridge/src/sbt-test/source-dependencies/override/D.scala +++ /dev/null @@ -1 +0,0 @@ -trait D extends C with B
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/override/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/override/changes/B2.scala deleted file mode 100644 index f314e6a46..000000000 --- a/bridge/src/sbt-test/source-dependencies/override/changes/B2.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait B extends A { - def x = 2 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/override/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/override/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/override/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/override/test b/bridge/src/sbt-test/source-dependencies/override/test deleted file mode 100644 index 43f805d4e..000000000 --- a/bridge/src/sbt-test/source-dependencies/override/test +++ /dev/null @@ -1,3 +0,0 @@ -> compile -$ copy-file changes/B2.scala B.scala --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/parent-change/W.scala b/bridge/src/sbt-test/source-dependencies/parent-change/W.scala deleted file mode 100644 index 527676b6d..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-change/W.scala +++ /dev/null @@ -1,5 +0,0 @@ -class W -{ - def x = 3 -} -class V extends W
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/parent-change/Y.scala b/bridge/src/sbt-test/source-dependencies/parent-change/Y.scala deleted file mode 100644 index 9379ee7b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-change/Y.scala +++ /dev/null @@ -1,5 +0,0 @@ -object Y -{ - def main(args: Array[String]) = - println( (new Z).x ) -} diff --git a/bridge/src/sbt-test/source-dependencies/parent-change/Z.scala b/bridge/src/sbt-test/source-dependencies/parent-change/Z.scala deleted file mode 100644 index 0f7c79a40..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-change/Z.scala +++ /dev/null @@ -1 +0,0 @@ -class Z extends V diff --git a/bridge/src/sbt-test/source-dependencies/parent-change/changes/W.scala b/bridge/src/sbt-test/source-dependencies/parent-change/changes/W.scala deleted file mode 100644 index f2e4dc28f..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-change/changes/W.scala +++ /dev/null @@ -1,5 +0,0 @@ -class W -{ - def x = 3 -} -class V
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/parent-change/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/parent-change/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-change/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/parent-change/test b/bridge/src/sbt-test/source-dependencies/parent-change/test deleted file mode 100644 index 9a80ffae6..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-change/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# modify V to no longer extend W -$ copy-file changes/W.scala W.scala - -# Should recompile Y.scala and report an error: "value x is not a member of Z" --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/parent-member-change/A.scala b/bridge/src/sbt-test/source-dependencies/parent-member-change/A.scala deleted file mode 100644 index d6f828508..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-member-change/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -class A { - def x(i: Int) = i+"3" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/parent-member-change/B.scala b/bridge/src/sbt-test/source-dependencies/parent-member-change/B.scala deleted file mode 100644 index 26e47fd25..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-member-change/B.scala +++ /dev/null @@ -1 +0,0 @@ -class B extends A
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/parent-member-change/C.scala b/bridge/src/sbt-test/source-dependencies/parent-member-change/C.scala deleted file mode 100644 index 6985a0d2f..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-member-change/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -class C extends B { - def x(s: String) = s+"5" -} diff --git a/bridge/src/sbt-test/source-dependencies/parent-member-change/changes/A.scala b/bridge/src/sbt-test/source-dependencies/parent-member-change/changes/A.scala deleted file mode 100644 index 949655f41..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-member-change/changes/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -class A { - def x(i: String) = i+"3" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/parent-member-change/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/parent-member-change/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-member-change/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/parent-member-change/test b/bridge/src/sbt-test/source-dependencies/parent-member-change/test deleted file mode 100644 index 95ba12295..000000000 --- a/bridge/src/sbt-test/source-dependencies/parent-member-change/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# modify A.scala so that the signature of its method changes to be identical to -# that of the method in its descendant in C.scala -$ copy-file changes/A.scala A.scala -# Should recompile C.scala and report this error, failing the compile --> compile diff --git a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/pkg-self/changes/A1.scala deleted file mode 100644 index f804b5b3e..000000000 --- a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/A1.scala +++ /dev/null @@ -1,8 +0,0 @@ -package demo.sub - -class A { - implicit def x(i: Int): C = new C(i) -} -class C(i: Int) { - def y = i + 1 -} diff --git a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/pkg-self/changes/A2.scala deleted file mode 100644 index 288698e5d..000000000 --- a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/A2.scala +++ /dev/null @@ -1,8 +0,0 @@ -package demo.sub - -class A { - implicit def x(i: Int): C = new C(i) -} -class C(i: Int) { - def y = i + 2 -} diff --git a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/B.scala b/bridge/src/sbt-test/source-dependencies/pkg-self/changes/B.scala deleted file mode 100644 index 54ffd4574..000000000 --- a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/B.scala +++ /dev/null @@ -1,5 +0,0 @@ -package demo - -object B { - 3.y -} diff --git a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/package.scala b/bridge/src/sbt-test/source-dependencies/pkg-self/changes/package.scala deleted file mode 100644 index 3c01ff4e4..000000000 --- a/bridge/src/sbt-test/source-dependencies/pkg-self/changes/package.scala +++ /dev/null @@ -1,3 +0,0 @@ -package object demo extends sub.A { - val y = 9 -} diff --git a/bridge/src/sbt-test/source-dependencies/pkg-self/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/pkg-self/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/pkg-self/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/pkg-self/test b/bridge/src/sbt-test/source-dependencies/pkg-self/test deleted file mode 100644 index 595138bba..000000000 --- a/bridge/src/sbt-test/source-dependencies/pkg-self/test +++ /dev/null @@ -1,14 +0,0 @@ -# Here we have a package object (demo) that extends a class in a subpackage (demo.sub.A) -# demo.sub.A provides an implicit used by demo.B -$ copy-file changes/package.scala src/main/scala/demo/package.scala -$ copy-file changes/A1.scala src/main/scala/demo/sub/A.scala -$ copy-file changes/B.scala src/main/scala/demo/B.scala -> compile - -# When recompiling A, we delete the class files for A -# When the demo package object is loaded, scalac complains it can't -# find the class files for A. Presumably this occurs because -# package object loading occurs early and doesn't see the new A -# from source. -$ copy-file changes/A2.scala src/main/scala/demo/sub/A.scala -> compile diff --git a/bridge/src/sbt-test/source-dependencies/qualified-access/A.scala b/bridge/src/sbt-test/source-dependencies/qualified-access/A.scala deleted file mode 100644 index b1ff88af7..000000000 --- a/bridge/src/sbt-test/source-dependencies/qualified-access/A.scala +++ /dev/null @@ -1,10 +0,0 @@ -package a -{ - package b - { - object A - { - private[a] def x = 3 - } - } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/qualified-access/B.scala b/bridge/src/sbt-test/source-dependencies/qualified-access/B.scala deleted file mode 100644 index d709285f5..000000000 --- a/bridge/src/sbt-test/source-dependencies/qualified-access/B.scala +++ /dev/null @@ -1,6 +0,0 @@ -package a - -object B -{ - val y = b.A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/qualified-access/changes/A.scala b/bridge/src/sbt-test/source-dependencies/qualified-access/changes/A.scala deleted file mode 100644 index ef50d0ef9..000000000 --- a/bridge/src/sbt-test/source-dependencies/qualified-access/changes/A.scala +++ /dev/null @@ -1,6 +0,0 @@ -package a.b - -object A -{ - private[b] def x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/qualified-access/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/qualified-access/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/qualified-access/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/qualified-access/test b/bridge/src/sbt-test/source-dependencies/qualified-access/test deleted file mode 100644 index 2cc575f6b..000000000 --- a/bridge/src/sbt-test/source-dependencies/qualified-access/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# change access of A.x -$ copy-file changes/A.scala A.scala - -# Should force recompilation of B.scala because access changed and B's access is now invalid. --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/relative-source-error/changes/absolute.sbt b/bridge/src/sbt-test/source-dependencies/relative-source-error/changes/absolute.sbt deleted file mode 100644 index a5f2d007a..000000000 --- a/bridge/src/sbt-test/source-dependencies/relative-source-error/changes/absolute.sbt +++ /dev/null @@ -1 +0,0 @@ -scalaSource in Compile := baseDirectory.value / "src"
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/relative-source-error/changes/relative.sbt b/bridge/src/sbt-test/source-dependencies/relative-source-error/changes/relative.sbt deleted file mode 100644 index 8e898fe02..000000000 --- a/bridge/src/sbt-test/source-dependencies/relative-source-error/changes/relative.sbt +++ /dev/null @@ -1 +0,0 @@ -scalaSource in Compile := file("src")
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/relative-source-error/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/relative-source-error/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/relative-source-error/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/relative-source-error/src/A.scala b/bridge/src/sbt-test/source-dependencies/relative-source-error/src/A.scala deleted file mode 100644 index 528ffce71..000000000 --- a/bridge/src/sbt-test/source-dependencies/relative-source-error/src/A.scala +++ /dev/null @@ -1 +0,0 @@ -object A
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/relative-source-error/test b/bridge/src/sbt-test/source-dependencies/relative-source-error/test deleted file mode 100644 index fb8e9dce8..000000000 --- a/bridge/src/sbt-test/source-dependencies/relative-source-error/test +++ /dev/null @@ -1,7 +0,0 @@ -$ copy-file changes/relative.sbt build.sbt -> reload --> compile - -$ copy-file changes/absolute.sbt build.sbt -> reload -> compile diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-a/changes/1.scala b/bridge/src/sbt-test/source-dependencies/remove-test-a/changes/1.scala deleted file mode 100644 index 1444a85e8..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-a/changes/1.scala +++ /dev/null @@ -1,6 +0,0 @@ -package test - -object TestScriptTest -{ - val x: Int = "" -} diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-a/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/remove-test-a/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-a/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-a/test b/bridge/src/sbt-test/source-dependencies/remove-test-a/test deleted file mode 100644 index ea5cc469c..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-a/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -$ copy-file changes/1.scala src/main/scala/1.scala --> compile - -$ delete src/main/scala/1.scala -> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/A2.scala deleted file mode 100644 index b971413bf..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/A2.scala +++ /dev/null @@ -1,6 +0,0 @@ -package test - -object A -{ - def test = B.length -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B3.scala b/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B3.scala deleted file mode 100644 index c5a1267df..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B3.scala +++ /dev/null @@ -1,6 +0,0 @@ -package test - -object B -{ - def length: Int = 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B4.scala b/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B4.scala deleted file mode 100644 index 86a6cb4b9..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B4.scala +++ /dev/null @@ -1,5 +0,0 @@ -package test - -object B -{ -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B5.scala b/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B5.scala deleted file mode 100644 index 8829a8f73..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/changes/B5.scala +++ /dev/null @@ -1,5 +0,0 @@ -/*package test - -object B -{ -}*/
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/remove-test-b/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/src/main/scala/A.scala b/bridge/src/sbt-test/source-dependencies/remove-test-b/src/main/scala/A.scala deleted file mode 100644 index af481a935..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/src/main/scala/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -package test - -object A -{ -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/src/main/scala/B.scala b/bridge/src/sbt-test/source-dependencies/remove-test-b/src/main/scala/B.scala deleted file mode 100644 index 86a6cb4b9..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/src/main/scala/B.scala +++ /dev/null @@ -1,5 +0,0 @@ -package test - -object B -{ -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/remove-test-b/test b/bridge/src/sbt-test/source-dependencies/remove-test-b/test deleted file mode 100644 index 79a6db6c8..000000000 --- a/bridge/src/sbt-test/source-dependencies/remove-test-b/test +++ /dev/null @@ -1,25 +0,0 @@ -> compile - -$ copy-file changes/A2.scala src/main/scala/A.scala --> compile - -$ copy-file changes/B3.scala src/main/scala/B.scala -> compile - -$ delete src/main/scala/B.scala --> compile - -$ copy-file changes/B3.scala src/main/scala/B.scala -> compile - -$ copy-file changes/B4.scala src/main/scala/B.scala --> compile - -$ copy-file changes/B3.scala src/main/scala/B.scala -> compile - -$ copy-file changes/B5.scala src/main/scala/B.scala --> compile - -$ copy-file changes/B3.scala src/main/scala/B.scala -> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/repeated-parameters/A.scala b/bridge/src/sbt-test/source-dependencies/repeated-parameters/A.scala deleted file mode 100644 index df798a859..000000000 --- a/bridge/src/sbt-test/source-dependencies/repeated-parameters/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - def x(i: String*) = () -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/repeated-parameters/B.scala b/bridge/src/sbt-test/source-dependencies/repeated-parameters/B.scala deleted file mode 100644 index a06f3a186..000000000 --- a/bridge/src/sbt-test/source-dependencies/repeated-parameters/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B -{ - val x = A.x("3") -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/repeated-parameters/changes/A.scala b/bridge/src/sbt-test/source-dependencies/repeated-parameters/changes/A.scala deleted file mode 100644 index 6de960644..000000000 --- a/bridge/src/sbt-test/source-dependencies/repeated-parameters/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - def x(i: Seq[String]) = () -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/repeated-parameters/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/repeated-parameters/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/repeated-parameters/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/repeated-parameters/test b/bridge/src/sbt-test/source-dependencies/repeated-parameters/test deleted file mode 100644 index 4964ab5a8..000000000 --- a/bridge/src/sbt-test/source-dependencies/repeated-parameters/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# change repeated parameters to Seq -$ copy-file changes/A.scala A.scala - -# B.scala needs recompiling because the type has changed --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/replace-test-a/changes/first.scala b/bridge/src/sbt-test/source-dependencies/replace-test-a/changes/first.scala deleted file mode 100644 index 9e12604c2..000000000 --- a/bridge/src/sbt-test/source-dependencies/replace-test-a/changes/first.scala +++ /dev/null @@ -1,4 +0,0 @@ -object First -{ - def main(args: Array[String]): Unit = () -} diff --git a/bridge/src/sbt-test/source-dependencies/replace-test-a/changes/second.scala b/bridge/src/sbt-test/source-dependencies/replace-test-a/changes/second.scala deleted file mode 100644 index 45ce49a65..000000000 --- a/bridge/src/sbt-test/source-dependencies/replace-test-a/changes/second.scala +++ /dev/null @@ -1,4 +0,0 @@ -object Second -{ - def main(args: Array[String]): Unit = () -} diff --git a/bridge/src/sbt-test/source-dependencies/replace-test-a/project/Build.scala b/bridge/src/sbt-test/source-dependencies/replace-test-a/project/Build.scala deleted file mode 100644 index 9c2678540..000000000 --- a/bridge/src/sbt-test/source-dependencies/replace-test-a/project/Build.scala +++ /dev/null @@ -1,19 +0,0 @@ -import sbt._ -import Keys._ -import java.net.URLClassLoader - -object B extends Build -{ - lazy val root = Project("root", file(".")) settings( ss : _*) - - def ss = Seq( - TaskKey[Unit]("check-first") <<= checkTask("First"), - TaskKey[Unit]("check-second") <<= checkTask("Second") - ) - private def checkTask(className: String) = - fullClasspath in Configurations.Runtime map { runClasspath => - val cp = runClasspath.map(_.data.toURI.toURL).toArray - Class.forName(className, false, new URLClassLoader(cp)) - () - } -} diff --git a/bridge/src/sbt-test/source-dependencies/replace-test-a/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/replace-test-a/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/replace-test-a/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/replace-test-a/test b/bridge/src/sbt-test/source-dependencies/replace-test-a/test deleted file mode 100644 index 4b4ad3a2b..000000000 --- a/bridge/src/sbt-test/source-dependencies/replace-test-a/test +++ /dev/null @@ -1,9 +0,0 @@ -$ copy-file changes/first.scala src/main/scala/A.scala -> compile -> check-first --> check-second - -$ copy-file changes/second.scala src/main/scala/A.scala -> compile --> check-first -> check-second
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/build.sbt b/bridge/src/sbt-test/source-dependencies/resident-java/build.sbt deleted file mode 100644 index 619622832..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/build.sbt +++ /dev/null @@ -1 +0,0 @@ -compileOrder := CompileOrder.JavaThenScala diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/changes/A1.java b/bridge/src/sbt-test/source-dependencies/resident-java/changes/A1.java deleted file mode 100644 index bdf223afb..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/changes/A1.java +++ /dev/null @@ -1,5 +0,0 @@ -package example; - -public class A { - public final int x = 3; -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/changes/A2.java b/bridge/src/sbt-test/source-dependencies/resident-java/changes/A2.java deleted file mode 100644 index 3b67c58d2..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/changes/A2.java +++ /dev/null @@ -1,5 +0,0 @@ -package example; - -public class A { - public final String x = "a"; -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/changes/B0.scala b/bridge/src/sbt-test/source-dependencies/resident-java/changes/B0.scala deleted file mode 100644 index 251ef7397..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/changes/B0.scala +++ /dev/null @@ -1 +0,0 @@ -object B diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/changes/B1.scala b/bridge/src/sbt-test/source-dependencies/resident-java/changes/B1.scala deleted file mode 100644 index 9d9a60c87..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/changes/B1.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val x: Int = (new example.A).x -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/resident-java/changes/B2.scala deleted file mode 100644 index ec5fd2cf3..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/changes/B2.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val x: String = (new example.A).x -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/resident-java/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-java/test b/bridge/src/sbt-test/source-dependencies/resident-java/test deleted file mode 100644 index 6987c7df0..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-java/test +++ /dev/null @@ -1,10 +0,0 @@ -$ copy-file changes/B0.scala B.scala -> compile - -$ copy-file changes/A1.java src/main/java/example/A.java -$ copy-file changes/B1.scala B.scala -> compile - -$ copy-file changes/A2.java src/main/java/example/A.java -$ copy-file changes/B2.scala B.scala -> compile diff --git a/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/A.scala b/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/A.scala deleted file mode 100644 index da058d2d9..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -package example - -object A { - val x: Int = green -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/package.scala b/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/package.scala deleted file mode 100644 index 9fd811040..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/package.scala +++ /dev/null @@ -1,3 +0,0 @@ -package object example { - val green = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/package2.scala b/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/package2.scala deleted file mode 100644 index 22c1afd15..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-package-object/changes/package2.scala +++ /dev/null @@ -1,3 +0,0 @@ -package object example { - val green = "asdf" -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-package-object/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/resident-package-object/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-package-object/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/resident-package-object/test b/bridge/src/sbt-test/source-dependencies/resident-package-object/test deleted file mode 100644 index e83d2578d..000000000 --- a/bridge/src/sbt-test/source-dependencies/resident-package-object/test +++ /dev/null @@ -1,11 +0,0 @@ -$ copy-file changes/package.scala src/main/scala/example/package.scala -> compile - -$ copy-file changes/A.scala src/main/scala/example/A.scala -> compile - -$ copy-file changes/package2.scala src/main/scala/example/package.scala --> compile - -$ copy-file changes/package.scala src/main/scala/example/package.scala -> compile diff --git a/bridge/src/sbt-test/source-dependencies/restore-classes/build.sbt b/bridge/src/sbt-test/source-dependencies/restore-classes/build.sbt deleted file mode 100644 index 2231204ea..000000000 --- a/bridge/src/sbt-test/source-dependencies/restore-classes/build.sbt +++ /dev/null @@ -1,12 +0,0 @@ -import complete.DefaultParsers._ - -crossTarget in Compile := target.value - -val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.") - -checkIterations := { - val expected: Int = (Space ~> NatBasic).parsed - val actual: Int = (compile in Compile).value.compilations.allCompilations.size - assert(expected == actual, s"Expected $expected compilations, got $actual") -} - diff --git a/bridge/src/sbt-test/source-dependencies/restore-classes/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/restore-classes/changes/A1.scala deleted file mode 100644 index 2a499fa7b..000000000 --- a/bridge/src/sbt-test/source-dependencies/restore-classes/changes/A1.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - val x = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/restore-classes/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/restore-classes/changes/A2.scala deleted file mode 100644 index 10d738255..000000000 --- a/bridge/src/sbt-test/source-dependencies/restore-classes/changes/A2.scala +++ /dev/null @@ -1,5 +0,0 @@ -object A { - val x = "a" -} - -class C diff --git a/bridge/src/sbt-test/source-dependencies/restore-classes/changes/B.scala b/bridge/src/sbt-test/source-dependencies/restore-classes/changes/B.scala deleted file mode 100644 index 945e97bb3..000000000 --- a/bridge/src/sbt-test/source-dependencies/restore-classes/changes/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B { - val y: Int = A.x -} - diff --git a/bridge/src/sbt-test/source-dependencies/restore-classes/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/restore-classes/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/restore-classes/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/restore-classes/test b/bridge/src/sbt-test/source-dependencies/restore-classes/test deleted file mode 100644 index 028d6226c..000000000 --- a/bridge/src/sbt-test/source-dependencies/restore-classes/test +++ /dev/null @@ -1,23 +0,0 @@ -$ copy-file changes/A1.scala A.scala -$ copy-file changes/B.scala B.scala -# B depends on A -# 1 iteration -> compile - -$ copy-file changes/A2.scala A.scala - -# will successfully compile A.scala in the first step but fail to compile B.scala in the second -# because type of A.x changed. The original classes should be restored after this failure. -# 2 iterations, but none are recorded in the Analysis --> compile - -# the class file for C should be deleted: -# it was only added by A2, but compilation hasn't succeeded yet -$ absent target/classes/C.class - - -$ copy-file changes/A1.scala A.scala -# if the classes were correctly restored, another compilation shouldn't be necessary -> compile -# so, there should only be the original 1 iteration recorded in the Analysis -> checkIterations 1 diff --git a/bridge/src/sbt-test/source-dependencies/same-file-used-names/A.scala b/bridge/src/sbt-test/source-dependencies/same-file-used-names/A.scala deleted file mode 100644 index d91afb5ca..000000000 --- a/bridge/src/sbt-test/source-dependencies/same-file-used-names/A.scala +++ /dev/null @@ -1,8 +0,0 @@ -object A { - def x = 3 - - def y = { - import B._ - x - } -} diff --git a/bridge/src/sbt-test/source-dependencies/same-file-used-names/B.scala b/bridge/src/sbt-test/source-dependencies/same-file-used-names/B.scala deleted file mode 100644 index 5e34efa4d..000000000 --- a/bridge/src/sbt-test/source-dependencies/same-file-used-names/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { -// def x = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/same-file-used-names/build.sbt b/bridge/src/sbt-test/source-dependencies/same-file-used-names/build.sbt deleted file mode 100644 index 8a38ef414..000000000 --- a/bridge/src/sbt-test/source-dependencies/same-file-used-names/build.sbt +++ /dev/null @@ -1 +0,0 @@ -incOptions := incOptions.value.withNameHashing(true) diff --git a/bridge/src/sbt-test/source-dependencies/same-file-used-names/changes/B.scala b/bridge/src/sbt-test/source-dependencies/same-file-used-names/changes/B.scala deleted file mode 100644 index 4bf188fb2..000000000 --- a/bridge/src/sbt-test/source-dependencies/same-file-used-names/changes/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - def x = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/same-file-used-names/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/same-file-used-names/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/same-file-used-names/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/same-file-used-names/test b/bridge/src/sbt-test/source-dependencies/same-file-used-names/test deleted file mode 100644 index 781b4aafb..000000000 --- a/bridge/src/sbt-test/source-dependencies/same-file-used-names/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# uncomment definition of `x` that leads to ambiguity error in A -$ copy-file changes/B.scala B.scala - -# Both A.scala and B.scala should be recompiled, producing a compile error --> compile diff --git a/bridge/src/sbt-test/source-dependencies/sealed/A.scala b/bridge/src/sbt-test/source-dependencies/sealed/A.scala deleted file mode 100644 index d185a50a9..000000000 --- a/bridge/src/sbt-test/source-dependencies/sealed/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -sealed trait A -class B extends A -class C extends A
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/sealed/D.scala b/bridge/src/sbt-test/source-dependencies/sealed/D.scala deleted file mode 100644 index 1f49e9d61..000000000 --- a/bridge/src/sbt-test/source-dependencies/sealed/D.scala +++ /dev/null @@ -1,8 +0,0 @@ - -object D { -def x(a: A) = - a match { - case _: B => () - case _: C => () - } -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/sealed/changes/A.scala b/bridge/src/sbt-test/source-dependencies/sealed/changes/A.scala deleted file mode 100644 index f00e9c127..000000000 --- a/bridge/src/sbt-test/source-dependencies/sealed/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -sealed trait A -class B extends A -class C extends A -class E extends A
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/sealed/pending b/bridge/src/sbt-test/source-dependencies/sealed/pending deleted file mode 100644 index 69c8ebe98..000000000 --- a/bridge/src/sbt-test/source-dependencies/sealed/pending +++ /dev/null @@ -1,11 +0,0 @@ -> 'set scalacOptions += "-Xfatal-warnings"' - -> compile - -# have new class E extend A -$ copy-file changes/A.scala A.scala - -# D.scala needs recompiling because the pattern match in D -# is no longer exhaustive, which should be a warning -# there is no way to make warnings errors, so this has to be manually checked --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/sealed/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/sealed/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/sealed/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/signature-change/B.scala b/bridge/src/sbt-test/source-dependencies/signature-change/B.scala deleted file mode 100644 index e049b23b0..000000000 --- a/bridge/src/sbt-test/source-dependencies/signature-change/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val x: Int = A.f1[Any](1) -} diff --git a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A0.scala b/bridge/src/sbt-test/source-dependencies/signature-change/changes/A0.scala deleted file mode 100644 index 6cf6a62c2..000000000 --- a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A0.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def f1[T](x: Int): Int = 1 -} diff --git a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/signature-change/changes/A1.scala deleted file mode 100644 index d10bcbadc..000000000 --- a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A1.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def f1[T](x: String): Int = 1 -} diff --git a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/signature-change/changes/A2.scala deleted file mode 100644 index 029dc28d7..000000000 --- a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A2.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def f1[T](x: Int): String = "" -} diff --git a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A3.scala b/bridge/src/sbt-test/source-dependencies/signature-change/changes/A3.scala deleted file mode 100644 index 69463721f..000000000 --- a/bridge/src/sbt-test/source-dependencies/signature-change/changes/A3.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - def f1[T <: Int](x: Int): Int = 1 -} diff --git a/bridge/src/sbt-test/source-dependencies/signature-change/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/signature-change/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/signature-change/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/signature-change/test b/bridge/src/sbt-test/source-dependencies/signature-change/test deleted file mode 100644 index 03ad663ab..000000000 --- a/bridge/src/sbt-test/source-dependencies/signature-change/test +++ /dev/null @@ -1,20 +0,0 @@ -# Case 1: parameter type changed -$ copy-file changes/A0.scala A.scala -> compile -$ copy-file changes/A1.scala A.scala -# Compilation of B.scala should fail because the signature of f changed --> compile - -# Case 2: return type changed -$ copy-file changes/A0.scala A.scala -> compile -$ copy-file changes/A2.scala A.scala -# Compilation of B.scala should fail because the signature of f changed --> compile - -# Case 3: type parameter bounds changed -$ copy-file changes/A0.scala A.scala -> compile -$ copy-file changes/A3.scala A.scala -# Compilation of B.scala should fail because the signature of f changed --> compile diff --git a/bridge/src/sbt-test/source-dependencies/specialized/A.scala b/bridge/src/sbt-test/source-dependencies/specialized/A.scala deleted file mode 100644 index a9b5e6818..000000000 --- a/bridge/src/sbt-test/source-dependencies/specialized/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -class A -{ - def x[T](t: T) = t -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/specialized/B.scala b/bridge/src/sbt-test/source-dependencies/specialized/B.scala deleted file mode 100644 index 387a85019..000000000 --- a/bridge/src/sbt-test/source-dependencies/specialized/B.scala +++ /dev/null @@ -1,7 +0,0 @@ -object B -{ - def main(args: Array[String]): Unit = { - val a = new A - a.x(3) - } -} diff --git a/bridge/src/sbt-test/source-dependencies/specialized/changes/A.scala b/bridge/src/sbt-test/source-dependencies/specialized/changes/A.scala deleted file mode 100644 index 76ac39400..000000000 --- a/bridge/src/sbt-test/source-dependencies/specialized/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -class A -{ - def x[@specialized T](t: T) = t -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/specialized/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/specialized/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/specialized/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/specialized/test b/bridge/src/sbt-test/source-dependencies/specialized/test deleted file mode 100644 index b9e1ad09c..000000000 --- a/bridge/src/sbt-test/source-dependencies/specialized/test +++ /dev/null @@ -1,15 +0,0 @@ -# -Yspecialize is 2.8 only -> compile - -# verify that erased A.x can be called normally and reflectively -> run false - -# make A.x specialized -$ copy-file changes/A.scala A.scala - -# B.scala needs recompiling so that B.y calls the specialized version of A.x -> compile - -# verify that specialized A.x can be called normally and reflectively -# NOTE: this test doesn't actually work correctly: have to check the output to see that B.scala was recompiled -> run true
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/stability-change/A.scala b/bridge/src/sbt-test/source-dependencies/stability-change/A.scala deleted file mode 100644 index e9b4d7aa6..000000000 --- a/bridge/src/sbt-test/source-dependencies/stability-change/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - val x = new C -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/stability-change/B.scala b/bridge/src/sbt-test/source-dependencies/stability-change/B.scala deleted file mode 100644 index fce3e99cf..000000000 --- a/bridge/src/sbt-test/source-dependencies/stability-change/B.scala +++ /dev/null @@ -1,5 +0,0 @@ -object B -{ - import A.x.y - val z = y -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/stability-change/C.scala b/bridge/src/sbt-test/source-dependencies/stability-change/C.scala deleted file mode 100644 index 9b2e3741a..000000000 --- a/bridge/src/sbt-test/source-dependencies/stability-change/C.scala +++ /dev/null @@ -1,4 +0,0 @@ -class C -{ - val y = 4 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/stability-change/changes/A.scala b/bridge/src/sbt-test/source-dependencies/stability-change/changes/A.scala deleted file mode 100644 index 1b6e8d65a..000000000 --- a/bridge/src/sbt-test/source-dependencies/stability-change/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - def x = new C -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/stability-change/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/stability-change/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/stability-change/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/stability-change/test b/bridge/src/sbt-test/source-dependencies/stability-change/test deleted file mode 100644 index 887778d24..000000000 --- a/bridge/src/sbt-test/source-dependencies/stability-change/test +++ /dev/null @@ -1,6 +0,0 @@ -> compile - -# replace val x with var x, invalidating the import in B -$ copy-file changes/A.scala A.scala - --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/synthetic-companion/A.scala b/bridge/src/sbt-test/source-dependencies/synthetic-companion/A.scala deleted file mode 100644 index 9917b2d98..000000000 --- a/bridge/src/sbt-test/source-dependencies/synthetic-companion/A.scala +++ /dev/null @@ -1 +0,0 @@ -case class A(x: Int) diff --git a/bridge/src/sbt-test/source-dependencies/synthetic-companion/B.scala b/bridge/src/sbt-test/source-dependencies/synthetic-companion/B.scala deleted file mode 100644 index be302fe40..000000000 --- a/bridge/src/sbt-test/source-dependencies/synthetic-companion/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - A(0) -} diff --git a/bridge/src/sbt-test/source-dependencies/synthetic-companion/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/synthetic-companion/changes/A2.scala deleted file mode 100644 index 3d35a445f..000000000 --- a/bridge/src/sbt-test/source-dependencies/synthetic-companion/changes/A2.scala +++ /dev/null @@ -1,2 +0,0 @@ -case class A(x: Int) -private object A diff --git a/bridge/src/sbt-test/source-dependencies/synthetic-companion/dbg.sbt b/bridge/src/sbt-test/source-dependencies/synthetic-companion/dbg.sbt deleted file mode 100644 index 1ac0e14e9..000000000 --- a/bridge/src/sbt-test/source-dependencies/synthetic-companion/dbg.sbt +++ /dev/null @@ -1,2 +0,0 @@ -logLevel := Level.Debug -incOptions ~= { _.copy(apiDebug = true, relationsDebug = true) } diff --git a/bridge/src/sbt-test/source-dependencies/synthetic-companion/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/synthetic-companion/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/synthetic-companion/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/synthetic-companion/test b/bridge/src/sbt-test/source-dependencies/synthetic-companion/test deleted file mode 100644 index f3a023810..000000000 --- a/bridge/src/sbt-test/source-dependencies/synthetic-companion/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile -$ copy-file changes/A2.scala A.scala -# Compilation of B.scala should fail because object A does not extend `Int => A` anymore --> compile diff --git a/bridge/src/sbt-test/source-dependencies/trait-member-modified/build.sbt b/bridge/src/sbt-test/source-dependencies/trait-member-modified/build.sbt deleted file mode 100644 index 949d78231..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-member-modified/build.sbt +++ /dev/null @@ -1,27 +0,0 @@ -/* Performs checks related to compilations: - * a) checks in which compilation given set of files was recompiled - * b) checks overall number of compilations performed - */ -TaskKey[Unit]("check-compilations") := { - val analysis = (compile in Compile).value - val srcDir = (scalaSource in Compile).value - def relative(f: java.io.File): java.io.File = f.relativeTo(srcDir) getOrElse f - val allCompilations = analysis.compilations.allCompilations - val recompiledFiles: Seq[Set[java.io.File]] = allCompilations map { c => - val recompiledFiles = analysis.apis.internal.collect { - case (file, api) if api.compilation.startTime == c.startTime => relative(file) - } - recompiledFiles.toSet - } - def recompiledFilesInIteration(iteration: Int, fileNames: Set[String]) = { - val files = fileNames.map(new java.io.File(_)) - assert(recompiledFiles(iteration) == files, "%s != %s".format(recompiledFiles(iteration), files)) - } - assert(allCompilations.size == 2) - // B.scala is just compiled at the beginning - recompiledFilesInIteration(0, Set("B.scala")) - // A.scala is changed and recompiled - recompiledFilesInIteration(1, Set("A.scala")) -} - -logLevel := Level.Debug diff --git a/bridge/src/sbt-test/source-dependencies/trait-member-modified/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/trait-member-modified/changes/A1.scala deleted file mode 100644 index 57a1f34c6..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-member-modified/changes/A1.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - def foo: Int = 12 -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-member-modified/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/trait-member-modified/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-member-modified/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-member-modified/src/main/scala/A.scala b/bridge/src/sbt-test/source-dependencies/trait-member-modified/src/main/scala/A.scala deleted file mode 100644 index 0eab80adc..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-member-modified/src/main/scala/A.scala +++ /dev/null @@ -1 +0,0 @@ -trait A diff --git a/bridge/src/sbt-test/source-dependencies/trait-member-modified/src/main/scala/B.scala b/bridge/src/sbt-test/source-dependencies/trait-member-modified/src/main/scala/B.scala deleted file mode 100644 index c4d3f7e97..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-member-modified/src/main/scala/B.scala +++ /dev/null @@ -1 +0,0 @@ -class B(a: A) diff --git a/bridge/src/sbt-test/source-dependencies/trait-member-modified/test b/bridge/src/sbt-test/source-dependencies/trait-member-modified/test deleted file mode 100644 index f8f7cb076..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-member-modified/test +++ /dev/null @@ -1,9 +0,0 @@ -# Test if adding a member to a trait affects classes that refer to that trait -# by a member reference -> compile -# add `foo` method to `A` -$ copy-file changes/A1.scala src/main/scala/A.scala -# only A.scala should be recompiled -> compile -# check if there are only two compile iterations performed -> check-compilations diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-object/A.scala b/bridge/src/sbt-test/source-dependencies/trait-private-object/A.scala deleted file mode 100644 index cbcda3176..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-object/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - val foo = 0 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-object/B.scala b/bridge/src/sbt-test/source-dependencies/trait-private-object/B.scala deleted file mode 100644 index 5da0f8a71..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-object/B.scala +++ /dev/null @@ -1,5 +0,0 @@ -object B extends A { - def main(args: Array[String]): Unit = { - println(foo) - } -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-object/changes/A.scala b/bridge/src/sbt-test/source-dependencies/trait-private-object/changes/A.scala deleted file mode 100644 index 63ca671b7..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-object/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait A { - val foo = 0 + X.a - private object X { val a = 1 } -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-object/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/trait-private-object/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-object/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-object/test b/bridge/src/sbt-test/source-dependencies/trait-private-object/test deleted file mode 100644 index 5aab7a143..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-object/test +++ /dev/null @@ -1,5 +0,0 @@ -> run - -$ copy-file changes/A.scala A.scala - -> run
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-var/B.scala b/bridge/src/sbt-test/source-dependencies/trait-private-var/B.scala deleted file mode 100644 index a0bb35627..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-var/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B extends A { - def main(args: Array[String]): Unit = println(bar) -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A0.scala b/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A0.scala deleted file mode 100644 index cf57bdb33..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A0.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait A { - def bar: Int = 0 -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A1.scala deleted file mode 100644 index 3eb53d77c..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A1.scala +++ /dev/null @@ -1,5 +0,0 @@ -trait A { - private var foo = 12 - // we need to access foo to trigger AbstractMethodError - def bar: Int = foo -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A2.scala deleted file mode 100644 index 60641457d..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-var/changes/A2.scala +++ /dev/null @@ -1,5 +0,0 @@ -trait A { - private val foo = 12 - // we need to access foo to trigger AbstractMethodError - def bar: Int = foo -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-var/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/trait-private-var/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-var/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-private-var/test b/bridge/src/sbt-test/source-dependencies/trait-private-var/test deleted file mode 100644 index c120697d8..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-private-var/test +++ /dev/null @@ -1,28 +0,0 @@ -$ copy-file changes/A0.scala A.scala - -# compile and run for the first time to verify that everything works -> run - -# introduce private var and refer to it in a trait that we inherit from -# there'll be pair of getters and setters generated for private var that -# has to be implemented by a class (where you can declare corresponding field) -$ copy-file changes/A1.scala A.scala - -# If the introduction of a private var did not trigger the recompilation of B, -# then this will fail with AbstractMethodError because the getters and setters -# for the private var have not been generated. -> run - -# Try again with a private val -> clean - -$ copy-file changes/A0.scala A.scala - -# compile and run a clean project to verify that everything works -> run - -# introduce a private val in the trait -$ copy-file changes/A2.scala A.scala - -# Verify that B has been recompiled and that everything runs fine. -> run diff --git a/bridge/src/sbt-test/source-dependencies/trait-super/A.scala b/bridge/src/sbt-test/source-dependencies/trait-super/A.scala deleted file mode 100644 index 52ad7e6a0..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-super/A.scala +++ /dev/null @@ -1,6 +0,0 @@ -trait A { - def x: Int -} -class E extends A { - def x = 19 -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-super/B.scala b/bridge/src/sbt-test/source-dependencies/trait-super/B.scala deleted file mode 100644 index cba4cc427..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-super/B.scala +++ /dev/null @@ -1,6 +0,0 @@ -trait B extends A { - abstract override def x = 1 -} -trait C extends A { - abstract override def x = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-super/Main.scala b/bridge/src/sbt-test/source-dependencies/trait-super/Main.scala deleted file mode 100644 index 37d821d9d..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-super/Main.scala +++ /dev/null @@ -1,10 +0,0 @@ -class X extends E with C with B - -object Main { - - def main(args: Array[String]): Unit = { - val x = new X - val expected = args(0).toInt - assert(x.x == expected, "Expected " + expected + ", got " + x.x) - } -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-super/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/trait-super/changes/B2.scala deleted file mode 100644 index c89acd3ae..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-super/changes/B2.scala +++ /dev/null @@ -1,6 +0,0 @@ -trait B extends A { - abstract override def x = super.x + 2 -} -trait C extends A { - abstract override def x = 3 -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-super/changes/B3.scala b/bridge/src/sbt-test/source-dependencies/trait-super/changes/B3.scala deleted file mode 100644 index 2a7ba55ec..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-super/changes/B3.scala +++ /dev/null @@ -1,6 +0,0 @@ -trait B extends A { - abstract override def x = super.x + 2 -} -trait C extends A { - abstract override def x = super.x -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-super/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/trait-super/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-super/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/trait-super/test b/bridge/src/sbt-test/source-dependencies/trait-super/test deleted file mode 100644 index b14d5dc76..000000000 --- a/bridge/src/sbt-test/source-dependencies/trait-super/test +++ /dev/null @@ -1,16 +0,0 @@ -# Dotty: This test has been disabled because super accessors are introduced -# in PostTyper but the sbt phase is run before PostTyper so that tests like -# "constants" succeed. - -# This test verifies that adding/removing calls to super in traits properly -# recompiles subclasses. super calls introduce accessors that are not in -# the public API, so this is not picked up by the usual API change detection. - -> run 1 - -$ copy-file changes/B2.scala B.scala -> run 5 - -$ copy-file changes/B3.scala B.scala -> run 21 - diff --git a/bridge/src/sbt-test/source-dependencies/transitive-a/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/transitive-a/changes/A2.scala deleted file mode 100644 index 8811bc83d..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-a/changes/A2.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - val x = 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-a/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/transitive-a/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-a/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/A.scala b/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/A.scala deleted file mode 100644 index a0121ded0..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A -{ - val x = "a" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/B.scala b/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/B.scala deleted file mode 100644 index da3e21492..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -object B -{ - val y = A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/C.scala b/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/C.scala deleted file mode 100644 index 0c2345e0f..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-a/src/main/scala/C.scala +++ /dev/null @@ -1,4 +0,0 @@ -object C -{ - val z = B.y.length -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-a/test b/bridge/src/sbt-test/source-dependencies/transitive-a/test deleted file mode 100644 index 774b014aa..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-a/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile - -$ copy-file changes/A2.scala src/main/scala/A.scala --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-b/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/transitive-b/changes/A2.scala deleted file mode 100644 index 3a0001416..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-b/changes/A2.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait A -{ - val x = 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-b/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/transitive-b/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-b/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/A.scala b/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/A.scala deleted file mode 100644 index d49070e79..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait A -{ - val x = "a" -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/B.scala b/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/B.scala deleted file mode 100644 index 310eb5b60..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/B.scala +++ /dev/null @@ -1 +0,0 @@ -trait B extends A
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/C.scala b/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/C.scala deleted file mode 100644 index da117fc3f..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-b/src/main/scala/C.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait C extends B -{ - val z = x.length -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-b/test b/bridge/src/sbt-test/source-dependencies/transitive-b/test deleted file mode 100644 index 774b014aa..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-b/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile - -$ copy-file changes/A2.scala src/main/scala/A.scala --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/A.java b/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/A.java deleted file mode 100644 index 96b1a01a7..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/A.java +++ /dev/null @@ -1,3 +0,0 @@ -public class A { - public int x() { return 5; } -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/B.java b/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/B.java deleted file mode 100644 index 7e9bb5574..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/B.java +++ /dev/null @@ -1 +0,0 @@ -public class B extends A {} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/C.java b/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/C.java deleted file mode 100644 index a5a7716ea..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/C.java +++ /dev/null @@ -1,4 +0,0 @@ -public class C extends B -{ - public int x() { return super.x() + 3; } -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/changes/A2.java b/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/changes/A2.java deleted file mode 100644 index 9f4b93d84..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/changes/A2.java +++ /dev/null @@ -1 +0,0 @@ -public class A {} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/test b/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/test deleted file mode 100644 index 387cbae45..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit-java/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile - -$ copy-file changes/A2.java A.java --> compile diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit/A.scala b/bridge/src/sbt-test/source-dependencies/transitive-inherit/A.scala deleted file mode 100644 index 0eab80adc..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit/A.scala +++ /dev/null @@ -1 +0,0 @@ -trait A diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit/B.scala b/bridge/src/sbt-test/source-dependencies/transitive-inherit/B.scala deleted file mode 100644 index 310eb5b60..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit/B.scala +++ /dev/null @@ -1 +0,0 @@ -trait B extends A
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit/C.scala b/bridge/src/sbt-test/source-dependencies/transitive-inherit/C.scala deleted file mode 100644 index 9e7708627..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit/C.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait C extends B -{ - def x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/transitive-inherit/changes/A2.scala deleted file mode 100644 index 609031a44..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit/changes/A2.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait A -{ - def x = 5 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/transitive-inherit/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-inherit/test b/bridge/src/sbt-test/source-dependencies/transitive-inherit/test deleted file mode 100644 index 74fa79ef9..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-inherit/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile - -$ copy-file changes/A2.scala A.scala --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/build.sbt b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/build.sbt deleted file mode 100644 index d24e304b1..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/build.sbt +++ /dev/null @@ -1,40 +0,0 @@ -logLevel := Level.Debug - -incOptions := incOptions.value.withNameHashing(true) - -// disable sbt's heauristic which recompiles everything in case -// some fraction (e.g. 50%) of files is scheduled to be recompiled -// in this test we want precise information about recompiled files -// which that heuristic would distort -incOptions := incOptions.value.copy(recompileAllFraction = 1.0) - -/* Performs checks related to compilations: - * a) checks in which compilation given set of files was recompiled - * b) checks overall number of compilations performed - */ -TaskKey[Unit]("check-compilations") := { - val analysis = (compile in Compile).value - val srcDir = (scalaSource in Compile).value - def relative(f: java.io.File): java.io.File = f.relativeTo(srcDir) getOrElse f - val allCompilations = analysis.compilations.allCompilations - val recompiledFiles: Seq[Set[java.io.File]] = allCompilations map { c => - val recompiledFiles = analysis.apis.internal.collect { - case (file, api) if api.compilation.startTime == c.startTime => relative(file) - } - recompiledFiles.toSet - } - def recompiledFilesInIteration(iteration: Int, fileNames: Set[String]) = { - val files = fileNames.map(new java.io.File(_)) - assert(recompiledFiles(iteration) == files, "%s != %s".format(recompiledFiles(iteration), files)) - } - // Y.scala is compiled only at the beginning as changes to A.scala do not affect it - recompiledFilesInIteration(0, Set("X.scala", "Y.scala")) - // A.scala is changed and recompiled - recompiledFilesInIteration(1, Set("A.scala")) - // change in A.scala causes recompilation of B.scala, C.scala, D.scala which depend on transtiviely - // and by inheritance on A.scala - // X.scala is also recompiled because it depends by member reference on B.scala - // Note that Y.scala is not recompiled because it depends just on X through member reference dependency - recompiledFilesInIteration(2, Set("B.scala", "C.scala", "D.scala")) - assert(allCompilations.size == 3) -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/changes/A1.scala deleted file mode 100644 index 63a2739e1..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/changes/A1.scala +++ /dev/null @@ -1,5 +0,0 @@ -package test - -class A { - def foo: Int = 23 -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/A.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/A.scala deleted file mode 100644 index 1b0178fd9..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -package test - -class A diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/B.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/B.scala deleted file mode 100644 index b9913245b..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -package test - -class B extends A diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/C.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/C.scala deleted file mode 100644 index 4ce04f8bf..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -package test - -class C extends B diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/D.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/D.scala deleted file mode 100644 index eff328ce5..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/D.scala +++ /dev/null @@ -1,3 +0,0 @@ -package test - -class D extends C diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/X.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/X.scala deleted file mode 100644 index 8c0d9edf8..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/X.scala +++ /dev/null @@ -1,5 +0,0 @@ -package test - -class X { - def bar(b: B) = b -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/Y.scala b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/Y.scala deleted file mode 100644 index df53c3c5c..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/src/main/scala/Y.scala +++ /dev/null @@ -1,5 +0,0 @@ -package test - -class Y { - def baz(x: X) = x -} diff --git a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/test b/bridge/src/sbt-test/source-dependencies/transitive-memberRef/test deleted file mode 100644 index 395f90229..000000000 --- a/bridge/src/sbt-test/source-dependencies/transitive-memberRef/test +++ /dev/null @@ -1,11 +0,0 @@ -# introduces first compile iteration -> compile -# adds a new method to A which will cause transitive invalidation -# of all source files that inherit from it -# also, all direct dependencies of files that inherit from A will -# be invalidated (in our case that's X.scala) -$ copy-file changes/A1.scala src/main/scala/A.scala -# second iteration -> compile -# check in which compile iteration given source file got recompiled -> check-compilations diff --git a/bridge/src/sbt-test/source-dependencies/type-alias/A.scala b/bridge/src/sbt-test/source-dependencies/type-alias/A.scala deleted file mode 100644 index c0c8794a7..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-alias/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A { - type X = Option[Int] -} - diff --git a/bridge/src/sbt-test/source-dependencies/type-alias/B.scala b/bridge/src/sbt-test/source-dependencies/type-alias/B.scala deleted file mode 100644 index 81640ed8d..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-alias/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - def y: A.X = Option(3) -} diff --git a/bridge/src/sbt-test/source-dependencies/type-alias/build.sbt b/bridge/src/sbt-test/source-dependencies/type-alias/build.sbt deleted file mode 100644 index c5a1099aa..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-alias/build.sbt +++ /dev/null @@ -1,3 +0,0 @@ -logLevel in compile := Level.Debug - -incOptions := incOptions.value.withNameHashing(true) diff --git a/bridge/src/sbt-test/source-dependencies/type-alias/changes/A.scala b/bridge/src/sbt-test/source-dependencies/type-alias/changes/A.scala deleted file mode 100644 index 53aee1626..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-alias/changes/A.scala +++ /dev/null @@ -1,3 +0,0 @@ -object A { - type X = Int -} diff --git a/bridge/src/sbt-test/source-dependencies/type-alias/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/type-alias/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-alias/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/type-alias/test b/bridge/src/sbt-test/source-dependencies/type-alias/test deleted file mode 100644 index f0a7fe8a1..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-alias/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# change type alias -$ copy-file changes/A.scala A.scala - -# Both A.scala and B.scala should be recompiled, producing a compile error --> compile diff --git a/bridge/src/sbt-test/source-dependencies/type-parameter/A.scala b/bridge/src/sbt-test/source-dependencies/type-parameter/A.scala deleted file mode 100644 index d712f6feb..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-parameter/A.scala +++ /dev/null @@ -1 +0,0 @@ -trait A[T] diff --git a/bridge/src/sbt-test/source-dependencies/type-parameter/B.scala b/bridge/src/sbt-test/source-dependencies/type-parameter/B.scala deleted file mode 100644 index 0f996cdc3..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-parameter/B.scala +++ /dev/null @@ -1 +0,0 @@ -trait B[T] extends A[T] diff --git a/bridge/src/sbt-test/source-dependencies/type-parameter/C.scala b/bridge/src/sbt-test/source-dependencies/type-parameter/C.scala deleted file mode 100644 index 505a83aa6..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-parameter/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -object C { - new A[Int] {} -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/type-parameter/D.scala b/bridge/src/sbt-test/source-dependencies/type-parameter/D.scala deleted file mode 100644 index 51273ad98..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-parameter/D.scala +++ /dev/null @@ -1,3 +0,0 @@ -object D { - def x[T](a: A[T]) = a -} diff --git a/bridge/src/sbt-test/source-dependencies/type-parameter/changes/A.scala b/bridge/src/sbt-test/source-dependencies/type-parameter/changes/A.scala deleted file mode 100644 index 0eab80adc..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-parameter/changes/A.scala +++ /dev/null @@ -1 +0,0 @@ -trait A diff --git a/bridge/src/sbt-test/source-dependencies/type-parameter/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/type-parameter/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-parameter/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/type-parameter/test b/bridge/src/sbt-test/source-dependencies/type-parameter/test deleted file mode 100644 index 2063e9e1b..000000000 --- a/bridge/src/sbt-test/source-dependencies/type-parameter/test +++ /dev/null @@ -1,7 +0,0 @@ -> compile - -# remove type parameter from A -$ copy-file changes/A.scala A.scala - -# should get compile error because B, C, D reference A without a type parameter --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/typeref-only/A.scala b/bridge/src/sbt-test/source-dependencies/typeref-only/A.scala deleted file mode 100644 index 3b274e4a8..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-only/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -class A[T] - -abstract class C { - def foo: A[B] -} diff --git a/bridge/src/sbt-test/source-dependencies/typeref-only/B.scala b/bridge/src/sbt-test/source-dependencies/typeref-only/B.scala deleted file mode 100644 index 179f0d275..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-only/B.scala +++ /dev/null @@ -1 +0,0 @@ -class B diff --git a/bridge/src/sbt-test/source-dependencies/typeref-only/build.sbt b/bridge/src/sbt-test/source-dependencies/typeref-only/build.sbt deleted file mode 100644 index 02813797f..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-only/build.sbt +++ /dev/null @@ -1,5 +0,0 @@ -logLevel := Level.Debug - -// disable recompile all which causes full recompile which -// makes it more difficult to test dependency tracking -incOptions ~= { _.copy(recompileAllFraction = 1.0) } diff --git a/bridge/src/sbt-test/source-dependencies/typeref-only/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/typeref-only/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-only/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/typeref-only/test b/bridge/src/sbt-test/source-dependencies/typeref-only/test deleted file mode 100644 index fb314fd7b..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-only/test +++ /dev/null @@ -1,7 +0,0 @@ -# test case for dependency tracking in case given type (`B` in our case) -# mentioned only in type ref (as a type argument) -> compile - -$ delete B.scala - --> compile diff --git a/bridge/src/sbt-test/source-dependencies/typeref-return/A.scala b/bridge/src/sbt-test/source-dependencies/typeref-return/A.scala deleted file mode 100644 index 0407cb687..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-return/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A { - type I = Int - def x: I = sys.error("not important") -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/typeref-return/B.scala b/bridge/src/sbt-test/source-dependencies/typeref-return/B.scala deleted file mode 100644 index afb1169fc..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-return/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val y: Int = A.x -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/typeref-return/changes/A.scala b/bridge/src/sbt-test/source-dependencies/typeref-return/changes/A.scala deleted file mode 100644 index dfac84abb..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-return/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -object A { - type I = String - def x: I = sys.error("Not important") -} diff --git a/bridge/src/sbt-test/source-dependencies/typeref-return/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/typeref-return/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-return/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/typeref-return/test b/bridge/src/sbt-test/source-dependencies/typeref-return/test deleted file mode 100644 index 751cde01b..000000000 --- a/bridge/src/sbt-test/source-dependencies/typeref-return/test +++ /dev/null @@ -1,5 +0,0 @@ -> compile - -$ copy-file changes/A.scala A.scala - --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/A.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/A.scala deleted file mode 100644 index 83d15dc73..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/A.scala +++ /dev/null @@ -1 +0,0 @@ -class A diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/B.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/B.scala deleted file mode 100644 index a18aec3db..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/B.scala +++ /dev/null @@ -1 +0,0 @@ -class B extends A diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/C.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/C.scala deleted file mode 100644 index d8c306253..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -object C { - val listb: List[B] = List(new B) -} diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/D.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/D.scala deleted file mode 100644 index fa8f13a1b..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/D.scala +++ /dev/null @@ -1,3 +0,0 @@ -object D { - val lista: List[A] = C.listb -} diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/changes/B2.scala deleted file mode 100644 index 179f0d275..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/changes/B2.scala +++ /dev/null @@ -1 +0,0 @@ -class B diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/test b/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/test deleted file mode 100644 index 134321021..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-a/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile -$ copy-file changes/B2.scala B.scala -# Compilation of D.scala should fail because B is no longer a subtype of A --> compile diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/A.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/A.scala deleted file mode 100644 index 301b546cb..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -class A { - type T <: S - type S <: Int - def foo: T = null.asInstanceOf[T] -} diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/B.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/B.scala deleted file mode 100644 index edfe2e6a8..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - val x: Int = (new A).foo -} diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/changes/A2.scala deleted file mode 100644 index bbe60f206..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/changes/A2.scala +++ /dev/null @@ -1,5 +0,0 @@ -class A { - type T <: S - type S <: String - def foo: T = null.asInstanceOf[T] -} diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/test b/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/test deleted file mode 100644 index 97902bd42..000000000 --- a/bridge/src/sbt-test/source-dependencies/types-in-used-names-b/test +++ /dev/null @@ -1,4 +0,0 @@ -> compile -$ copy-file changes/A2.scala A.scala -# Compilation of B.scala should fail because A#S is no longer a subtype of Int --> compile diff --git a/bridge/src/sbt-test/source-dependencies/value-class-underlying/A.scala b/bridge/src/sbt-test/source-dependencies/value-class-underlying/A.scala deleted file mode 100644 index dbaa1c3f0..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class-underlying/A.scala +++ /dev/null @@ -1 +0,0 @@ -class A(val x: Int) extends AnyVal diff --git a/bridge/src/sbt-test/source-dependencies/value-class-underlying/B.scala b/bridge/src/sbt-test/source-dependencies/value-class-underlying/B.scala deleted file mode 100644 index 7d5a86a95..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class-underlying/B.scala +++ /dev/null @@ -1,3 +0,0 @@ -object B { - def foo: A = new A(0) -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class-underlying/C.scala b/bridge/src/sbt-test/source-dependencies/value-class-underlying/C.scala deleted file mode 100644 index 1a9a42bde..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class-underlying/C.scala +++ /dev/null @@ -1,5 +0,0 @@ -object C { - def main(args: Array[String]): Unit = { - val x = B.foo - } -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class-underlying/build.sbt b/bridge/src/sbt-test/source-dependencies/value-class-underlying/build.sbt deleted file mode 100644 index 6448c246c..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class-underlying/build.sbt +++ /dev/null @@ -1 +0,0 @@ -logLevel := Level.Debug diff --git a/bridge/src/sbt-test/source-dependencies/value-class-underlying/changes/A2.scala b/bridge/src/sbt-test/source-dependencies/value-class-underlying/changes/A2.scala deleted file mode 100644 index 94d868a92..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class-underlying/changes/A2.scala +++ /dev/null @@ -1 +0,0 @@ -class A(val x: Double) extends AnyVal diff --git a/bridge/src/sbt-test/source-dependencies/value-class-underlying/test b/bridge/src/sbt-test/source-dependencies/value-class-underlying/test deleted file mode 100644 index a42fd2d71..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class-underlying/test +++ /dev/null @@ -1,3 +0,0 @@ -> run -$ copy-file changes/A2.scala A.scala -> run diff --git a/bridge/src/sbt-test/source-dependencies/value-class/build.sbt b/bridge/src/sbt-test/source-dependencies/value-class/build.sbt deleted file mode 100644 index 77cf9f18c..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/build.sbt +++ /dev/null @@ -1 +0,0 @@ -incOptions := incOptions.value.withRecompileAllFraction(1.0) diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/A0.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/A0.scala deleted file mode 100644 index ad5bf4c56..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/A0.scala +++ /dev/null @@ -1 +0,0 @@ -class A(val x: Int) diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/A1.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/A1.scala deleted file mode 100644 index dbaa1c3f0..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/A1.scala +++ /dev/null @@ -1 +0,0 @@ -class A(val x: Int) extends AnyVal diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/B0.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/B0.scala deleted file mode 100644 index 0dba978c3..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/B0.scala +++ /dev/null @@ -1,3 +0,0 @@ -class B { - def foo(a: A): Int = 1 -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/B1.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/B1.scala deleted file mode 100644 index c7b689c5e..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/B1.scala +++ /dev/null @@ -1,3 +0,0 @@ -class B { - def bar: A = new A(0) -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/B2.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/B2.scala deleted file mode 100644 index fe1136389..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/B2.scala +++ /dev/null @@ -1,3 +0,0 @@ -class B { - def bar(dummy: String)(dummy2: String): A = new A(0) -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/C0.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/C0.scala deleted file mode 100644 index 1fed7a120..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/C0.scala +++ /dev/null @@ -1,3 +0,0 @@ -object C extends dotty.runtime.LegacyApp { - println(new B().foo(null)) -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/C1.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/C1.scala deleted file mode 100644 index f10fe2d16..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/C1.scala +++ /dev/null @@ -1,3 +0,0 @@ -object C extends dotty.runtime.LegacyApp { - println(new B().bar.x) -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class/changes/C2.scala b/bridge/src/sbt-test/source-dependencies/value-class/changes/C2.scala deleted file mode 100644 index a0c5c6972..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/changes/C2.scala +++ /dev/null @@ -1,3 +0,0 @@ -object C extends dotty.runtime.LegacyApp { - println(new B().bar("")("").x) -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/value-class/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/value-class/test b/bridge/src/sbt-test/source-dependencies/value-class/test deleted file mode 100644 index 268274bf6..000000000 --- a/bridge/src/sbt-test/source-dependencies/value-class/test +++ /dev/null @@ -1,50 +0,0 @@ -## Case 1: value class as parameter of method -$ copy-file changes/A0.scala src/main/scala/A.scala -$ copy-file changes/B0.scala src/main/scala/B.scala -$ copy-file changes/C0.scala src/main/scala/C.scala - -# A is a normal class. B.foo accepts a parameter of type A. C calls B.foo, giving it `null`. -> compile -> run - -# Make A a value class. -$ copy-file changes/A1.scala src/main/scala/A.scala - -# The code no longer compiles because B.foo no longer accepts `null` as an argument. -# This means that we have invalidated C.scala, as expected! --> compile - - -## Case 2: value class as return type of method with no parameter lists -$ copy-file changes/A0.scala src/main/scala/A.scala -$ copy-file changes/B1.scala src/main/scala/B.scala -$ copy-file changes/C1.scala src/main/scala/C.scala - -# A is a normal class. B.bar takes no arguments and returns an instance of A. C calls B.bar. -> compile -> run - -# Make A a value class. -$ copy-file changes/A1.scala src/main/scala/A.scala - -# The code compiles. It will run iff C is recompiled because the signature of B.bar has changed, -# because A is now a value class. -> run - - -## Case 3: value class as return type of method with multiple parameter lists -$ copy-file changes/A0.scala src/main/scala/A.scala -$ copy-file changes/B2.scala src/main/scala/B.scala -$ copy-file changes/C2.scala src/main/scala/C.scala - -# A is a normal class. B.bar takes two dummy arguments and returns an instance of A. C calls B.bar("")(""). -> compile -> run - -# Make A a value class. -$ copy-file changes/A1.scala src/main/scala/A.scala - -# The code compiles. It will run iff C is recompiled because the signature of B.bar has changed, -# because A is now a value class. -> run - diff --git a/bridge/src/sbt-test/source-dependencies/var/A.scala b/bridge/src/sbt-test/source-dependencies/var/A.scala deleted file mode 100644 index 1c5d96e09..000000000 --- a/bridge/src/sbt-test/source-dependencies/var/A.scala +++ /dev/null @@ -1,5 +0,0 @@ -class A -{ - def x = 3 - def x_=(x$1: Int) = () -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/var/B.scala b/bridge/src/sbt-test/source-dependencies/var/B.scala deleted file mode 100644 index 3ee290f84..000000000 --- a/bridge/src/sbt-test/source-dependencies/var/B.scala +++ /dev/null @@ -1,4 +0,0 @@ -class B extends A -{ - override var x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/var/changes/A.scala b/bridge/src/sbt-test/source-dependencies/var/changes/A.scala deleted file mode 100644 index d1c251596..000000000 --- a/bridge/src/sbt-test/source-dependencies/var/changes/A.scala +++ /dev/null @@ -1,4 +0,0 @@ -class A -{ - var x = 3 -}
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/var/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/var/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/var/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/var/test b/bridge/src/sbt-test/source-dependencies/var/test deleted file mode 100644 index 1da88684d..000000000 --- a/bridge/src/sbt-test/source-dependencies/var/test +++ /dev/null @@ -1,6 +0,0 @@ -> compile - -# replace var x with def x, def x_= -$ copy-file changes/A.scala A.scala - --> compile
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/variance/A.scala b/bridge/src/sbt-test/source-dependencies/variance/A.scala deleted file mode 100644 index 4581bfec8..000000000 --- a/bridge/src/sbt-test/source-dependencies/variance/A.scala +++ /dev/null @@ -1,2 +0,0 @@ -class A[+T] -
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/variance/C.scala b/bridge/src/sbt-test/source-dependencies/variance/C.scala deleted file mode 100644 index 8b526d9af..000000000 --- a/bridge/src/sbt-test/source-dependencies/variance/C.scala +++ /dev/null @@ -1,3 +0,0 @@ -object C { - val a: A[Any] = new A[Int] -} diff --git a/bridge/src/sbt-test/source-dependencies/variance/changes/A.scala b/bridge/src/sbt-test/source-dependencies/variance/changes/A.scala deleted file mode 100644 index e9c64dff6..000000000 --- a/bridge/src/sbt-test/source-dependencies/variance/changes/A.scala +++ /dev/null @@ -1,2 +0,0 @@ -class A[T] -
\ No newline at end of file diff --git a/bridge/src/sbt-test/source-dependencies/variance/project/DottyInjectedPlugin.scala b/bridge/src/sbt-test/source-dependencies/variance/project/DottyInjectedPlugin.scala deleted file mode 100644 index 3433779b6..000000000 --- a/bridge/src/sbt-test/source-dependencies/variance/project/DottyInjectedPlugin.scala +++ /dev/null @@ -1,17 +0,0 @@ -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() - ) -} diff --git a/bridge/src/sbt-test/source-dependencies/variance/test b/bridge/src/sbt-test/source-dependencies/variance/test deleted file mode 100644 index d74e441e7..000000000 --- a/bridge/src/sbt-test/source-dependencies/variance/test +++ /dev/null @@ -1,6 +0,0 @@ -> compile - -# make T invariant -$ copy-file changes/A.scala A.scala - --> compile
\ No newline at end of file |