title: Can a Scala object be visible to only those objects in the same file?
body: <p>Is there an access modifier [Edit: or an idiomatic workaround which achieves the same thing] which will allow a Scala name/object to be visible to all the code in the same file, but not the whole package the file is part of?</p>
  
  <pre><code>package org.example.foo
  
  private object SharedStuff {
    val bar = 0
  }
  
  class Foo {
    def apply(x: Int): String = ... something involving SharedStuff.bar ...
  }
  
  class Fuz {
    def fuzz(t: String): Int = ... something else involving SharedStuff.bar ...
  }
  </code></pre>
  
  <p>In its current state, the object <code>SharedStuff</code> will be visible to all code in package <code>foo</code>. I'd like it to be visible to the classes <code>Foo</code> and <code>Fuz</code> only, without making an explicit subpackage to enclose this file.</p>