Commit Graph

3201 Commits

Author SHA1 Message Date
Araq
400a7ff1bb closes #6249 2018-10-02 19:41:47 +02:00
Andreas Rumpf
e867c8e5c3 Merge branch 'devel' into fix_issues_9126 2018-10-01 14:15:35 +02:00
Yasuhiro Horimoto
aa8249d177 Fix #9126: use splitPath instead of substr 2018-09-30 23:20:14 +09:00
LemonBoy
6d4503325c Fix regression with runnableExamples in generic expr
The examples should not enter the generic analysis at all.
The regression was introduced in 4cf704bb as a fix for #8694.

Fixes #9130
Fixes #8694
2018-09-30 14:11:53 +02:00
Sergey Avseyev
756f50d0a3 Fix ioTests category after rename
Broken in e39f2a9283
2018-09-29 23:26:06 +03:00
Andreas Rumpf
57d0ff385c Merge pull request #9121 from timotheecour/pr_fix_tasyncfilewrite
remove test_async.txt after test to keep git status clean
2018-09-29 20:17:38 +02:00
Timothee Cour
f59ddb7007 remove test_async.txt after test to keep git status clean 2018-09-29 16:57:56 +02:00
Araq
40e01d8549 don't require an implementation for procs marked with .error; activate the move optimizer for destructors 2018-09-29 16:54:59 +02:00
LemonBoy
a1083d7c43 Fix codegen for some set operations
Taking the LHS type when a temporary result value was needed lead to bad
code being generated if we get a tyRef.

Fixes #9098
2018-09-28 09:59:45 +02:00
LemonBoy
e9b5a4e25d Constant folding should not drop distinct types
Fixes #9079
2018-09-27 17:08:01 +02:00
Araq
787687727a fixes #9076 2018-09-26 11:32:02 +02:00
Araq
3d768738f8 testament: quote categories too because of 'dir with space' test 2018-09-26 11:31:17 +02:00
Andreas Rumpf
9a9005622b make t7346 work again 2018-09-24 16:00:57 +02:00
Andreas Rumpf
9364369c1f make tests green again 2018-09-24 16:00:57 +02:00
Andreas Rumpf
c38a608c90 C codegen: support system.move and system.wasMoved 2018-09-24 16:00:57 +02:00
Andreas Rumpf
3c461755e2 enable destructors for top level statements; needs to be documented 2018-09-24 16:00:57 +02:00
Andreas Rumpf
fedd695d76 Merge pull request #9046 from LemonBoy/fix-9043
Fix for VM codegen with static[T] types
2018-09-23 23:08:35 +02:00
LemonBoy
fb54f394e8 Fix for VM codegen with static[T] types
Fixes #9043
2018-09-23 18:17:00 +02:00
Andreas Rumpf
179791aa9a Merge pull request #8746 from LemonBoy/nil-opts
nil strings are movable
2018-09-23 07:51:22 +02:00
LemonBoy
7a087ffb29 nil strings are movable 2018-09-22 20:47:49 +02:00
Andreas Rumpf
a2587aad0d Merge pull request #9035 from LemonBoy/fix-3075
Skip nested procedures in .async. macro
2018-09-22 20:18:13 +02:00
LemonBoy
75a981cf80 Skip nested procedures in .async. macro
Fixes #3075
2018-09-22 17:30:17 +02:00
Andreas Rumpf
b2727d03a6 Merge pull request #9020 from LemonBoy/fix-9019
Revert #7964
2018-09-22 13:53:58 +02:00
Araq
6892ce336c enhance iterator test case, ensure consistency between inline and closure iterators regarding parameter passing semantics 2018-09-22 13:29:00 +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
LemonBoy
4d9aec1858 Revert #7964
Somehow the test case doesn't crash anymore and the regression in the
doc generation is fixed.

Fixes #9019
2018-09-21 18:59:46 +02:00
Andreas Rumpf
a19d2f76f6 Merge pull request #9015 from LemonBoy/fix-9013
Fix linking issue in cpp codegen
2018-09-19 22:53:52 +02:00
LemonBoy
334032294f Fix linking issue in cpp codegen
Declare the root symbol only once and have the other modules depending
on it emit an `extern` declaration.

Fixes #9013
2018-09-19 12:46:50 +02:00
LemonBoy
a27429304e Convert *_family fields to cushort
Fixes #9008
2018-09-19 12:33:11 +02:00
Andreas Rumpf
34f0b91104 attempt to make travis green for 'koch testinstall' 2018-09-18 17:25:27 +02:00
Andreas Rumpf
7ee6774fb7 travis: run 'koch testinstall' on OSX 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
597acad507 Merge pull request #8937 from Vindaar/fixes-8925
fix #8925 by using `getTypeInst` instead of `getType`
2018-09-18 09:37:39 +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
Zahary Karadjov
95072fbcc3 Bugfix: custom pragmas were not working on public fields 2018-09-17 22:17:39 +03:00
Vindaar
72a65c43a7 add test case 2018-09-17 19:56:42 +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
550806aba4 Merge pull request #8968 from genotrance/test-6434
Test case for #6434
2018-09-16 21:44:41 +02:00
Andreas Rumpf
c554c2a581 closes #3837 2018-09-16 21:37:11 +02:00
Ganesh Viswanathan
9b4305c359 Remove duplicate 2018-09-16 05:44:37 -05:00
Andreas Rumpf
0330fb2e13 fixes #8911 2018-09-16 12:28:43 +02:00
Andreas Rumpf
501f6c8020 Merge pull request #8970 from genotrance/test-7010
Test case for #7010
2018-09-16 11:39:27 +02:00
Ganesh Viswanathan
9fc0a9ad42 Merge remote-tracking branch 'upstream/devel' into test-7010 2018-09-15 14:33:47 -05:00
Ganesh Viswanathan
ae8e907edb Merge remote-tracking branch 'upstream/devel' into test-6483 2018-09-15 14:33:33 -05:00
Ganesh Viswanathan
e4fa1c81cb Merge remote-tracking branch 'upstream/devel' into test-6434 2018-09-15 14:33:15 -05:00