| Code: |
// Ecompile Bug Test
use os;
use uo;
program test(who)
var testitem := Target(who, 0); // select any item
print(testitem); // print an itemref
var ev;
if (testitem.serial)
ev := struct {type := 12, cmd := 10, field := testitem}; // Bug !
// ev := struct {type := 12, cmd := 10, field}; // No Bug
// ev.field := testitem; // No Bug endif
print(ev);
print(testitem);
endprogram
|