Andreas Rumpf
0930ec72d9
Merge pull request #9028 from LemonBoy/fix-8985
...
Fix locals() interaction with generic types
2018-09-22 09:11:33 +02:00
LemonBoy
e07ab06f0a
Fix locals() interaction with generic types
...
Follow the same logic as semTupleFieldsConstr and only skip skVar since
we're gonna add a nkDefer anyway.
Fixes #8985
2018-09-21 22:35:54 +02:00
Jörg Wollenschläger
c29d9f0382
Allow custom pragmas on more symbols again
2018-09-22 03:32:04 +09:00
Andreas Rumpf
6b5e2adfd0
niminst: don't depend on NIMINSTDEPS environment variable anymore
2018-09-21 09:09:52 +02:00
Araq
113b530a52
cleanup import paths
2018-09-21 00:34:45 +02:00
Araq
4711b81b86
compiler/nim.cfg: cleanup --path
2018-09-21 00:31:16 +02:00
Andreas Rumpf
7ee6774fb7
travis: run 'koch testinstall' on OSX
2018-09-18 15:27:54 +02:00
Andreas Rumpf
23c323ea1d
docgen tests: patch 'nim' commands to use the currently running exe instead
2018-09-18 15:27:54 +02:00
Andreas Rumpf
a5d014233a
Merge pull request #8996 from LemonBoy/fix-2574
...
The VM cannot call methods
2018-09-18 10:29:49 +02:00
Andreas Rumpf
aa2d219afe
Merge pull request #8995 from LemonBoy/fix-4952
...
Fix error during field access in VM
2018-09-18 09:38:28 +02:00
Andreas Rumpf
c661f8e1be
Merge pull request #8983 from cooldome/codegen_crash
...
Fixes 8979
2018-09-18 09:36:16 +02:00
Andreas Rumpf
9c6dde1b70
Merge pull request #8990 from LemonBoy/fix-8259
...
Always check the deduced type validity for result
2018-09-17 22:45:12 +02:00
Araq
34388c5cc5
name mangling: also special case the backslash character
2018-09-17 20:48:55 +02:00
Andreas Rumpf
539fc5d58b
improve the error message for 'attempt to redefine X'; fixes #447
2018-09-17 19:54:56 +02:00
Andreas Rumpf
3467c455c0
fixes #1616 ; fixes 'nim doc' regressions
2018-09-17 19:54:56 +02:00
LemonBoy
c2e5faf959
The VM cannot call methods
...
Fixes #2574
2018-09-17 19:14:13 +02:00
LemonBoy
027cc5013e
Fix error during field access in VM
...
Tuple constructors can't have nkExprColonExpr but may contain NimNodes
of that kind.
Fixes #4952
2018-09-17 18:52:40 +02:00
LemonBoy
3588240226
Always check the deduced type validity for result
...
Fixes #8259
2018-09-17 15:33:44 +02:00
Andrii Riabushenko
acaf2b8e76
Fixes 8979
2018-09-16 21:33:21 +01:00
Andreas Rumpf
a622291be4
parser.nim: minor code style fix
2018-09-16 21:33:08 +02:00
Andreas Rumpf
058a42c3a2
Merge pull request #8975 from fragcolor-xyz/devel
...
Improve the compiler option cppCompileToNamespace
2018-09-16 09:48:23 +02:00
Giovanni
e21c3028cb
Removed optUseNimNamespace, removed useless nil check
2018-09-16 08:43:03 +09:00
Jörg Wollenschläger
e4af0fcb6d
Allow subpaths of names of length 1
2018-09-15 20:22:04 +09:00
Giovanni
f1b64e4b96
improve the compiler option "cppCompileToNamespace", a custom namespace can now be set
2018-09-15 20:10:54 +09:00
Andreas Rumpf
4342b79a3c
Merge pull request #8971 from LemonBoy/fix-8967
...
Fix codegen for set[T] parameters
2018-09-15 12:55:23 +02:00
LemonBoy
6af6ca6351
Fix codegen for set[T] parameters
...
Sometimes sets are materialized as arrays and we must treat them as
such: the CPP backend is pickier than the C one and would sometimes
produce invalid code.
Fixes #8967
2018-09-15 11:55:11 +02:00
Andreas Rumpf
5fa4fa185b
Merge pull request #8875 from awr1/experimentalize-reorder
...
Experimentalize reorder (Changes {.reorder: on.} to {.experimental: "codeReordering".})
2018-09-15 00:36:57 +02:00
Andreas Rumpf
0c04b80651
Merge pull request #8966 from LemonBoy/fix-8964
...
Fix hashing for codegenProc (sic) types
2018-09-14 22:28:12 +02:00
Araq
ed5d2b5505
make tcompilerapi green, don't assue projectPath exists
2018-09-14 19:30:02 +02:00
Araq
313282d805
better file handling for .line directives
2018-09-14 15:55:29 +02:00
Araq
5709736e82
Merge branch 'devel' into araq-better-docgen
2018-09-14 15:48:07 +02:00
Araq
5ee904643a
fixes #8883
2018-09-14 15:47:37 +02:00
LemonBoy
839953c3e1
Fix hashing for codegenProc (sic) types
...
Since the name mangling is inhibited we should take the user-supplied
name during the sighash computation.
Fixes #8964
2018-09-14 15:37:51 +02:00
Araq
b9ed684dd2
index generation for docgen knows about subdirectories; index knows about enum values; fixes import statement for runnableExamples
2018-09-13 01:05:51 +02:00
Andreas Rumpf
132eb31e32
Merge pull request #8949 from nim-lang/araq-for-loop-expressions
...
For loop expressions
2018-09-12 10:27:54 +02:00
LemonBoy
87955eaf30
Fix concat behaviour for uninitialized strings ( #8950 )
2018-09-11 23:35:21 +02:00
LemonBoy
8670f4911b
Fix semantic pass with borrowed magic procs ( #8945 )
...
Reported by pqflx3 on the forum.
2018-09-11 20:32:25 +02:00
Andreas Rumpf
84d122b5c8
extended system.type/typeof to support an upcoming 'collect' macro that works much better than sugar.lc
2018-09-11 19:02:05 +02:00
Andreas Rumpf
f7d1902043
fixes merge conflicts
2018-09-11 17:27:47 +02:00
Andreas Rumpf
af94946517
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-09-11 16:41:34 +02:00
LemonBoy
9ba80d2044
JS strings have no trailing zero anymore ( #8936 )
2018-09-11 11:45:02 +02:00
Araq
f14f554435
nim doc: fixes cross-link generation when --out is used
2018-09-10 23:27:45 +02:00
LemonBoy
7107ec05de
Narrowing casts are applied after every op if needed ( #8918 )
...
This way we make sure not to end up with weird values every now and
then.
Fixes #7300
Fixes #8909
2018-09-08 19:41:07 +02:00
Araq
769b562764
some protection against injected doc comments from templates
2018-09-08 10:45:51 +02:00
Araq
ca77f9388a
'nim doc': fixes index generation regression
2018-09-08 10:04:22 +02:00
LemonBoy
91b37311d9
Fix AST generation for case statements ( #8908 )
...
Fixes #7534
2018-09-07 21:07:06 +02:00
LemonBoy
eae3c305a7
Don't segfault if the line is empty ( #8906 )
2018-09-07 21:06:51 +02:00
LemonBoy
e69d8ec416
Fix type comparison in semConv ( #8907 )
...
Fixes #8905
2018-09-07 21:06:30 +02:00
Araq
f078f272e5
make tests green again
2018-09-07 19:21:17 +02:00
Araq
e06a89e112
fixes bootstrapping problems
2018-09-07 19:21:17 +02:00