summaryrefslogtreecommitdiff
path: root/test/files/presentation/t8085/src/nodescala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/presentation/t8085/src/nodescala')
-rw-r--r--test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala6
-rw-r--r--test/files/presentation/t8085/src/nodescala/package.scala7
2 files changed, 5 insertions, 8 deletions
diff --git a/test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala b/test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala
index a8803ff86d..45e43c7afb 100644
--- a/test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala
+++ b/test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala
@@ -1,12 +1,10 @@
package nodescala
-import scala.concurrent.Future
-
class NodeScalaSuite {
- Future.always(517)
+ "".rich
// This is here only to prove that the presentation compiler is instantiated with the
// correct `sourcepath` value (if it wasn't, you would see a `not found: type Foo` in
// the test's output
println(new Foo())
-} \ No newline at end of file
+}
diff --git a/test/files/presentation/t8085/src/nodescala/package.scala b/test/files/presentation/t8085/src/nodescala/package.scala
index 6e9d4b729a..26fb9f08e4 100644
--- a/test/files/presentation/t8085/src/nodescala/package.scala
+++ b/test/files/presentation/t8085/src/nodescala/package.scala
@@ -1,8 +1,7 @@
-import scala.concurrent.Future // <-- if you move the import *inside* the package object, then it all works fine!!
+import scala.Some // <-- if you move the import *inside* the package object, then it all works fine!!
package object nodescala {
- implicit class FutureCompanionOps[T](val f: Future.type) extends AnyVal {
- def always[T](value: T): Future[T] = Promise[T].success(value).future
+ implicit class StringOps(val f: String) {
+ def rich = 0
}
}
-