ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Stack overflow #408

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Code:

Type TElements = (et1, et2);
Var Elements : Set Of TElements = []

Original issue reported on code.google.com by kazantse...@mail.ru on 30 May 2013 at 12:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It looks like this could be fixed by adding the following:

function TSetOfSymbol.IsCompatible(typSym: TTypeSymbol): Boolean;
begin
   Result:=BaseType = typSym.BaseType;
end;

But even then, this doesn't compile, as the compiler can't understand set 
literals yet.  But at least it doesn't get caught in an infinite recursion 
anymore.

Original comment by masonwhe...@gmail.com on 30 May 2013 at 1:45

GoogleCodeExporter commented 8 years ago
Yes, this solve problem.

Original comment by kazantse...@mail.ru on 30 May 2013 at 2:08

GoogleCodeExporter commented 8 years ago
Fixed by r2145 & previous commit

Original comment by zar...@gmail.com on 31 May 2013 at 9:03