Last week and this week:
- Bugfixing. The compiler is finally able to finish compiling itself.
With PEVerify I get 639 errors (18 unique).
Next week:
- Fix the PEVerify errors.
Problems:
- I had a bug it took me four days to work around, as always problems
with the MS runtime, it failed with a TypeLoadException for several
types complaining that the generic parameter constraints were not
fulfilled. It took me four days to make a small reproduceable
testcase, in the end I had to copy all the code to another folder and
start commenting out to find out when it started working. In the end
it seems that the simple presence of a class with a method with type
parameter with constraints can make a totally unrelated generic class
fail. And it all have to be compiled in a specific order, and it has
to be done with the debugger attached, because otherwise the it all
works perfectly...
Solution: remove all constraints from the code.