I created the following code and it's crashing the compiler. I've created issue "assert in proc addInheritedField crashes compiler. #2607".
Is this really an illegal program, if so why?
$ cat -n x.nim
1 type
2 Component[T] = object of RootObj
3 t: T
4
5 ChildComponent[T] = object of Component[T]
6 f: float
7
8 StringChildComponent = object of ChildComponent[string]