summaryrefslogtreecommitdiff
path: root/test/files/presentation/t8085/src/nodescala/package.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/presentation/t8085/src/nodescala/package.scala')
-rw-r--r--test/files/presentation/t8085/src/nodescala/package.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/presentation/t8085/src/nodescala/package.scala b/test/files/presentation/t8085/src/nodescala/package.scala
new file mode 100644
index 0000000000..6e9d4b729a
--- /dev/null
+++ b/test/files/presentation/t8085/src/nodescala/package.scala
@@ -0,0 +1,8 @@
+import scala.concurrent.Future // <-- 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
+ }
+}
+