* Fix #14325
* Refactor and fix
This commit is contained in:
Clyybber 2021-03-11 14:03:25 +01:00 • committed by GitHub
commit 3cbc80045d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 32 deletions

View file

@ -1,15 +0,0 @@
type
TPassContext = object of RootObj
PPassContext = ref TPassContext
PCtx = ref object of TPassContext
a: int
ModuleGraph = object
vm: RootRef
proc main() =
var g = ModuleGraph(vm: new(Pctx))
PCtx(g.vm) = nil #This generates invalid C code
main()