title: Anonymous object ~ object does not contain a definition for property
body: <p>The following code will not compile if I include f1().</p>
  
  <p>However, I see both X &amp; Y in intellisense with their values at the call to calculationXY() in the call from f2().</p>
  
  <p>The f1() compile error is: <code>object does not contain a definition or x {or for y for that matter</code> and the .x is red underlined.</p>
  
  <pre><code>private object calculateXY(int id) {
      // bla bla bla
      return (new { x = calX, y = calY });
  }
  
  /*
  f1() {
      var p = calculateXY(10);
      p.x + 1;    
  }
  */
  
  f2() {
      var p = calculateXY(10);
      //p.x + 1; 
  }
  </code></pre>