Assertion fails for invalid code

Issue #76 resolved
Christian Budde created an issue

For the (invalid) code below an assertion fails:

type  
  TFoo = class
  private
    FBar: TBar;
  public
    property Bar: TFoo read FBar;    
  end; 

var Test := TFoo.Create;
Test.Bar.

While it might seem to be an edge case at the first glance, it may happen very easily if one just misspell an existing class at the place of TBar. (e.g. if TBar doesn't exists, but TBar1 does, but the 1 was missing).

Also the example stops with the dot and thus the code is incomplete. However, even with some valid code after the dot the assertion failed.

Comments (1)

  1. Log in to comment