Assertion failed for incomplete source code

Issue #75 resolved
Christian Budde created an issue

This issue is a bit hard to reproduce as it involves an extra unit.

The main program is as simple as this:

uses Foo;

The unit Foo (for example Foo.pas) looks like this:

unit Test;

interface

{$DEF

as such it is incomplete and thus should not compile. However, it causes an assertion to fail (unit dwsExprs.pas line 8598):

   Assert((FCurrentContext=nil) or (FCurrentContext.Token=ttUNIT));

Again, it's not critical, but it would be nice if it could be fixed as I can imagine other causes for this as well.

Comments (1)

  1. Log in to comment