covariance for arrays and sequences

This commit is contained in:
Zahary Karadjov 2017-05-12 18:42:46 +03:00
commit f4e73344d4
3 changed files with 247 additions and 50 deletions

View file

@ -1344,6 +1344,7 @@ const
hasThreadSupport = compileOption("threads") and not defined(nimscript)
hasSharedHeap = defined(boehmgc) or defined(gogc) # don't share heaps; every thread has its own
taintMode = compileOption("taintmode")
nimEnableCovariance* = defined(nimEnableCovariance) # or true
when hasThreadSupport and defined(tcc) and not compileOption("tlsEmulation"):
# tcc doesn't support TLS