title: Custom getter without return on all paths compiles nevertheless
body: <p>I wrote this code:</p>
  
  <pre><code>var test: String? = null
      get() {
          field?.also {
              return "has value"
          }
      }
  </code></pre>
  
  <p>It reaches <code>return</code> only when the field is non-null. Otherwise the body just completes. Nevertheless, this compiles fine and returns <code>null</code> if field is null.</p>
  
  <p>If I change to this:</p>
  
  <pre><code>var test: String? = null
      get() {
          if (field != null)
              return "has value"
      }
  </code></pre>
  
  <p>now the compiler complains that the block body needs a return statement.</p>
  
  <p>Is this some undocumented feature or a bug?</p>