From 16eab024a892a1fe20750284625990b9afcbaadb Mon Sep 17 00:00:00 2001 From: Lucas Burson Date: Sun, 16 Oct 2016 20:29:12 -0500 Subject: Move 'sandbox/scalajs/hello.scala' to 'sandbox/scalajs/src/main/scala/hello.scala' to fix an ensime error. After this change, `sbt ensimeConfig` works. The ensime error message: ``` [error] You have .scala files in the base of your project. Such "script style" projects [error] are not supported by ENSIME. Simply move them into src/main/scala to get support. [error] Please read https://github.com/ensime/ensime-server/issues/1432 ``` --- sandbox/scalajs/hello.scala | 15 --------------- sandbox/scalajs/src/main/scala/hello.scala | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 sandbox/scalajs/hello.scala create mode 100644 sandbox/scalajs/src/main/scala/hello.scala (limited to 'sandbox') diff --git a/sandbox/scalajs/hello.scala b/sandbox/scalajs/hello.scala deleted file mode 100644 index bd4aa8cc5..000000000 --- a/sandbox/scalajs/hello.scala +++ /dev/null @@ -1,15 +0,0 @@ -package hello - -import scala.scalajs.js - -trait MyTrait { - val x = 5 - def foo(y: Int) = x -} - -object world extends js.JSApp with MyTrait { - def main(): Unit = { - println("hello dotty.js!") - println(foo(4)) - } -} diff --git a/sandbox/scalajs/src/main/scala/hello.scala b/sandbox/scalajs/src/main/scala/hello.scala new file mode 100644 index 000000000..bd4aa8cc5 --- /dev/null +++ b/sandbox/scalajs/src/main/scala/hello.scala @@ -0,0 +1,15 @@ +package hello + +import scala.scalajs.js + +trait MyTrait { + val x = 5 + def foo(y: Int) = x +} + +object world extends js.JSApp with MyTrait { + def main(): Unit = { + println("hello dotty.js!") + println(foo(4)) + } +} -- cgit v1.2.3