The type forwarder for type 'type' in assembly 'assembly' causes a cycle
This error can only occur with improperly formed imported metadata. It cannot occur with only X# source.
The following sample generates XS0731. The example consists of three files:
1.Circular.IL
2.Circular2.IL
3.XS0731.prg
First compile the .IL files as libraries, and then compile the .prg code referencing the two files.
// Circular.il
// compile with: /DLL /out=Circular.dll
// Circular2.il
// compile with: /DLL /out=Circular2.dll
// XS0731.prg
// compile with: /reference:circular.dll /reference:circular2.dll