diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-18 10:39:14 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-18 10:39:14 -0800 |
commit | 0beca4b2f039fb21222cef29c1b7b5a012df5e61 (patch) | |
tree | a79814df4fcf045f0862489a6f33531a0984796c /test/files/presentation/t8085/src/nodescala | |
parent | 9bc68766aa17b3509de1bac0e330ea80b6955cdf (diff) | |
parent | eca51c403066f20e6b82ba55bf6794d165b0a9ab (diff) | |
download | scala-0beca4b2f039fb21222cef29c1b7b5a012df5e61.tar.gz scala-0beca4b2f039fb21222cef29c1b7b5a012df5e61.tar.bz2 scala-0beca4b2f039fb21222cef29c1b7b5a012df5e61.zip |
Merge pull request #3383 from adriaanm/merge-2.10.x
Merge 2.10.x
Diffstat (limited to 'test/files/presentation/t8085/src/nodescala')
3 files changed, 20 insertions, 0 deletions
diff --git a/test/files/presentation/t8085/src/nodescala/Foo.scala b/test/files/presentation/t8085/src/nodescala/Foo.scala new file mode 100644 index 0000000000..19efdb65dd --- /dev/null +++ b/test/files/presentation/t8085/src/nodescala/Foo.scala @@ -0,0 +1,3 @@ +package nodescala + +class Foo diff --git a/test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala b/test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala new file mode 100644 index 0000000000..45e43c7afb --- /dev/null +++ b/test/files/presentation/t8085/src/nodescala/NodeScalaSuite.scala @@ -0,0 +1,10 @@ +package nodescala + +class NodeScalaSuite { + "".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()) +} 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..26fb9f08e4 --- /dev/null +++ b/test/files/presentation/t8085/src/nodescala/package.scala @@ -0,0 +1,7 @@ +import scala.Some // <-- if you move the import *inside* the package object, then it all works fine!! + +package object nodescala { + implicit class StringOps(val f: String) { + def rich = 0 + } +} |