summary refs log tree commit diff stats
path: root/lib/system/cgprocs.nim
Commit message (Expand)AuthorAgeFilesLines
* proper distinction between --gc:none and --os:standaloneAraq2015-06-291-5/+0
* lib/system/a-e - Dropped 'T' from typespdw2015-06-041-5/+6
* Fix typosFederico Ceratto2015-02-151-1/+1
* introduced 'benign' pragmaAraq2014-10-251-2/+2
* the big renamefest: first stepsAraq2014-08-221-1/+1
* New concurrency model: next stepsAraq2014-04-191-2/+2
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
* year 2012 for most copyright headersAraq2012-01-021-1/+1
* further steps for thread support; bootstrapping should require unzip C source...Araq2011-05-161-47/+0
* debug build works again; sorryAraq2011-05-091-42/+43
* threadvar alternativeAraq2011-05-091-2/+12
* gc tweaking to gain a few percent of performanceAraq2011-05-071-23/+34
* changes to threads; --recursivePath supportAraq2011-01-291-1/+25
* DLL generation of the stdlib for unixAndreas Rumpf2010-08-041-1/+1
* before stack init changeAndreas Rumpf2010-08-011-0/+12
* handling of compiler procs improved for DLL generationAndreas Rumpf2010-07-291-0/+14
3bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
discard """
  file: "tvariantasgn.nim"
  output: "came here"
"""
#BUG
type
  TAnyKind = enum
    nkInt,
    nkFloat,
    nkString
  TAny = object
    case kind: TAnyKind
    of nkInt: intVal: int
    of nkFloat: floatVal: float
    of nkString: strVal: string

var s: TAny
s.kind = nkString
s.strVal = "test"

var nr: TAny
nr.kind = nkint
nr.intVal = 78


# s = nr # works
nr = s # fails!
echo "came here"