JackTrapper / dwscript

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

Standard Set operators are not recognized #485

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
type
   TMyEnum = (first, second, third);
   TMySet = set of TMyEnum;

var mySet: TMySet := [first, second];
var newSet := mySet * [first, third]; //error: invalid operator
if newSet = [first] then //error: invalid operator
   printLn('Success!')

Original issue reported on code.google.com by masonwhe...@gmail.com on 2 Aug 2014 at 2:38