summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* Make `static` blocks introduce their own scopeLemonBoy2018-06-241-0/+2
| | | | | | | Treat the static block as a normal block, don't leak any identifier in the outer scope. Fixes #5958
* Merge pull request #8084 from LemonBoy/fix-7905Andreas Rumpf2018-06-241-3/+4
|\ | | | | Discriminate gensym'd type names in sigHash
| * Don't blow up with recursive objectsLemonBoy2018-06-221-4/+3
| |
| * Discriminate gensym'd type names in sigHashLemonBoy2018-06-221-2/+4
| | | | | | | | | | | | | | | | | | The root cause of #7905 lies in the codegen phase. The two template instantiations generate two different MyType types with different members but same t.sym.name leading the caching mechanism to confuse the two. Fixes #7905
* | Merge pull request #8062 from LemonBoy/fix-7825Andreas Rumpf2018-06-211-2/+9
|\ \ | | | | | | Fix constant folding for shl/not
| * | Fix constant folding for shl/notLemonBoy2018-06-191-2/+9
| | | | | | | | | | | | | | | Since the source and destination types are the same the result should be trimmed to fit.
* | | nimpretty: bugfixes; refs #8078Araq2018-06-201-4/+7
| | |
* | | fixes #8076Araq2018-06-201-10/+11
| | |
* | | nimpretty: fixes more reported issuesAndreas Rumpf2018-06-201-3/+4
| | |
* | | nimpretty: don't produce trailing whitespace; fixes the rendering of unary ↵Andreas Rumpf2018-06-191-4/+9
| | | | | | | | | | | | operators
* | | nimpretty: proper command line handling; added tests; travis ensures these ↵Andreas Rumpf2018-06-191-7/+5
| |/ |/| | | | | stay green
* | nimpretty improvementsAndreas Rumpf2018-06-193-43/+60
| |
* | nimpretty: don't touch dense binary operatorsAndreas Rumpf2018-06-171-9/+13
| |
* | nimpretty: fixes pragma renderingAndreas Rumpf2018-06-171-1/+1
| |
* | Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2018-06-162-60/+75
|\ \
| * \ Merge pull request #8039 from yglukhov/proc-pragmasAndreas Rumpf2018-06-162-60/+75
| |\ \ | | | | | | | | Fixed stacktrace/linetrace proc pragmas when appended by macro pragma
| | * | Fixed proto optionsYuriy Glukhov2018-06-151-0/+1
| | | |
| | * | Fixed stacktrace/linetrace proc pragmas when appended by macro pragmaYuriy Glukhov2018-06-142-60/+74
| | | |
* | | | nimpretty: stuff that doesn't workAndreas Rumpf2018-06-161-6/+34
| | | |
* | | | nimpretty: more featuresAndreas Rumpf2018-06-162-13/+51
|/ / /
* | | nimpretty: render and/or/notin/in properlyAndreas Rumpf2018-06-161-2/+9
| | |
* | | nimpretty: first version that seems useful for others to test itAndreas Rumpf2018-06-164-3/+231
| |/ |/|
* | Merge pull request #8021 from yglukhov/seq-litAndreas Rumpf2018-06-141-1/+1
|\ \ | | | | | | Added NIM_STRLIT_FLAG to seq literals
| * | Added NIM_STRLIT_FLAG to seq literalsYuriy Glukhov2018-06-121-1/+1
| | |
* | | implements pkg/ prefix to enforce searching for the module ignore the stdlib ↵Araq2018-06-141-18/+14
| |/ |/| | | | | paths; refs #7250
* | Fixed uncaught exception in vm genYuriy Glukhov2018-06-131-1/+1
| |
* | implements a --nep1:on switch to make the compiler enforce the naming ↵Andreas Rumpf2018-06-1312-45/+58
| | | | | | | | conventions outlined in NEP-1
* | bugfix: allow 'export' in the VMAndreas Rumpf2018-06-122-1/+2
| |
* | Merge pull request #8019 from yglukhov/proc-stacktraceAndreas Rumpf2018-06-122-2/+5
|\ \ | | | | | | Allow stacktrace and linetrace pragmas on procs
| * | Allow stacktrace and linetrace pragmas on procsYuriy Glukhov2018-06-122-2/+5
| |/
* | Merge pull request #7981 from cooldome/Fix_-7980Andreas Rumpf2018-06-122-3/+7
|\ \ | |/ |/| Fixes 7980
| * style improvementscooldome2018-06-122-3/+3
| |
| * add commentcooldome2018-06-121-0/+1
| |
| * New approachcooldome2018-06-123-32/+27
| |
| * fixes 7980cooldome2018-06-061-21/+29
| |
* | Merge pull request #8014 from yglukhov/fix-6803Andreas Rumpf2018-06-112-13/+11
|\ \ | | | | | | Fixes #6803
| * | Fixes #6803Yuriy Glukhov2018-06-112-13/+11
| | |
* | | Correct field lookup in concept typesLemonBoy2018-06-121-1/+1
|/ / | | | | | | Fixes #6770
* | fixes yet another merge conflictAraq2018-06-114-91/+4
|\ \
| * \ Merge pull request #8009 from yglukhov/remove-oldIterTransfAndreas Rumpf2018-06-114-91/+4
| |\ \ | | | | | | | | Removed oldIterTranf feature
| | * | Removed oldIterTranf featureYuriy Glukhov2018-06-104-91/+4
| | | |
* | | | disable -d:nimIncremental for develAraq2018-06-111-1/+1
| | | |
* | | | fixes merge conflictAraq2018-06-111-4/+2
|\| | |
| * | | Merge pull request #8005 from Vindaar/fixes-7997Andreas Rumpf2018-06-111-4/+2
| |\ \ \ | | |/ / | |/| | fix #7997
| | * | fix #7997Vindaar2018-06-101-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes issue #7997, which was caused by an export of a `release` proc in `locks`. Thus the `release` in `defined(release)` of the `ifDebug` template, was of kind `nkSym` instead of `nkIdent`. We fix this by getting the `PIdent` of the argument to `defined` using `considerQuotedIdent`. This has the nice property of also checking for a valid identifier for us. E.g. `defined(123)` would fail with ``` Error: in expression 'defined(123)': identifier expected, but found '123' ``` The `localError` is removed, due to a clear distinction between `declared` and `defined` now.
* | | | make tests green properlyAndreas Rumpf2018-06-111-2/+2
| | | |
* | | | fixes merge conflictAndreas Rumpf2018-06-114-15/+24
|\| | |
| * | | fix #7653Zahary Karadjov2018-06-102-12/+15
| |/ /
| * | Fix type inference with static literals.LemonBoy2018-06-101-1/+1
| | | | | | | | | | | | Fixes #3977
| * | Merge pull request #7873 from ehmry/GenodeEnvAndreas Rumpf2018-06-091-2/+8
| |\ \ | | | | | | | | Native access to Genode environment