aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/import-rewrite/file.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/import-rewrite/file.scala')
-rw-r--r--tests/pos/import-rewrite/file.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/import-rewrite/file.scala b/tests/pos/import-rewrite/file.scala
new file mode 100644
index 000000000..e52581e81
--- /dev/null
+++ b/tests/pos/import-rewrite/file.scala
@@ -0,0 +1,10 @@
+package file
+
+class File private (val str: String) {
+ def name: String = "name"
+}
+
+object File {
+ def apply(str: String): File = new File(str)
+}
+