Failed assertion for type mismatch

Issue #64 resolved
Christian Budde created an issue

The following errornous code snippet fails on an assert:

type
  TFoo = class
  end;

type
  TFooClass = class of TFoo;

var
  Foo: TFoo

procedure SetFoo(Value: TFooClass);
begin
  if Value <> Foo then
  begin
  end;
end;

Instead it should create an error message.

Comments (1)

  1. Log in to comment