Andreas Rumpf
3b8f721460
merged #11813 manually [bugfix]
2019-08-08 23:09:27 +02:00
Andreas Rumpf
81ddc67785
[refactoring] compiler: simplified markUsed
2019-08-08 22:43:58 +02:00
Andreas Rumpf
04708742e7
fixes #11809
2019-08-08 21:41:05 +02:00
Arne Döring
afbcd1b330
int128 on firstOrd, lastOrd and lengthOrd ( #11701 )
...
* fixes #11847
2019-08-07 15:53:16 +02:00
Andrii Riabushenko
4c73139316
revert changes
2019-07-25 23:18:20 +01:00
Andrii Riabushenko
d7bc4e43a2
fixes #11826
2019-07-25 23:02:04 +01:00
Araq
1868cbc449
revert the bugfix for #11747 as it really was a new, poorly though-out feature
2019-07-19 19:32:13 +02:00
Andreas Rumpf
fbb0642e27
Merge branch 'devel' into araq-detect-unused-imports
2019-07-18 18:16:32 +02:00
Andreas Rumpf
9852cf804b
warn about unused imports; fixes an 'export' regression [nobackport]
2019-07-18 18:16:25 +02:00
Araq
4137a4dbf3
[feature] detect unused imports
2019-07-17 22:36:23 +02:00
Andreas Rumpf
15d2a92be0
fixes #11747
2019-07-17 15:19:25 +02:00
Araq
44c12d9d20
make 'koch temp' work again
2019-07-14 16:07:30 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Araq
f64179e7fe
bugfix: allow type conversions between 'owned ref' types
2019-07-09 11:38:00 +02:00
Arne Döring
11dad688fe
Offsetof fixes ( #11690 )
...
* first fixes
* more tests and fixes
* code normalization
2019-07-09 09:07:45 +02:00
Andreas Rumpf
766960dc15
fixes #11515 ( #11624 )
...
* fixes #11515
* better fix for #11515 ; make tests green
2019-07-01 18:08:50 +02:00
Araq
b6fb47df77
fixes #11600
2019-06-26 15:55:27 +02:00
Araq
f67be92512
[feature] cleanup PR, refs #11424
2019-06-19 09:54:01 +02:00
Jasper Jenkins
8ee0f14ab6
literal array indices ( #11424 )
2019-06-18 14:16:33 +02:00
Araq
c07973e313
[refactoring] liftdestructors is now a module of its own
2019-06-12 08:45:47 +02:00
Arne Döring
5b27b263fd
Remove immediate pragma ( #11308 )
...
* remove immediate from tests
* remove immediate from the compiler
2019-05-29 22:21:51 +02:00
Andreas Rumpf
39a3dbb16b
fixes #11187 ( #11315 )
2019-05-24 08:19:05 +02:00
Andreas Rumpf
fd16875561
fixes #8568 ( #11303 )
...
* fixes #8568
* fixes regression
2019-05-22 20:59:54 +02:00
Andreas Rumpf
1e97b420bb
fixes #7167 ( #11300 )
...
* fixes #7167
* spec: distinct types can be ordinal types
* bootstrapping issue
2019-05-22 11:50:05 +02:00
Arne Döring
f94ec363ab
Allow void macro result ( #11286 )
...
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Ico Doornekamp
c01f7bfdaf
More specific error message for unsupported recursion in iterators ( #11283 )
2019-05-20 15:22:42 +02:00
Arne Döring
2339542832
Tuple error message ( #11141 ); fixes #3211
2019-05-15 17:59:06 +02:00
Andreas Rumpf
9ecb24e443
fixes #88 ( #11243 )
2019-05-15 08:17:29 +02:00
Jasper Jenkins
6fc74cec55
Iterator fixes ( #11234 )
2019-05-13 20:50:21 +02:00
Arne Döring
b92fd30282
rename tyExpr/tyStmt to tyUntyped/tyTyped ( #11227 )
2019-05-11 10:11:08 +02:00
Oscar Nihlgård
de5c0d3aa9
Make range checks in semConv ( #7164 )
...
* Remove NaN/Inf/NegInf magic
* Make range checks in semConv
* fix the failing line
* fix `firstOrd` and `lastOrd`
* fix `localError`
* remove debug comment
* Cleanup, fix failing test
* make tests green
2019-05-10 11:10:11 +02:00
Clyybber
cc28eef38e
Replace countup(x, y) with x .. y
2019-05-07 12:37:28 +02:00
Clyybber
f18b3af9d4
Replace countup(x, y-1) with x ..< y
2019-05-07 12:32:05 +02:00
Oscar Nihlgård
4c6fc173b7
low/high for float ranges ( #11177 )
2019-05-06 21:19:40 +02:00
Araq
094d71cb6f
fixes #11175
2019-05-05 12:20:43 +02:00
Aditya Siram
cc2be5e4c6
Fixes #11045 . Assigning a proc to const and invoking. ( #11076 )
2019-05-04 22:57:15 +02:00
Araq
9ad96b58e6
decent borrow check for --newruntime
2019-05-02 11:46:38 +02:00
Araq
1ff2b021a5
fixes #11114
2019-05-02 09:39:57 +02:00
Araq
665fcb12dd
fixes #11073
2019-04-22 08:05:16 +02:00
Andreas Rumpf
fabc2a7086
revert discardable transformation ( #10905 )
...
* Revert "Properly wrap discarded statements (#10322 )"
This reverts commit 15584879b9 .
* add test for implicit discard after defer
* enable t10241 again
* make C++ tests green again
2019-04-21 09:57:53 +02:00
Araq
1c0b1e9d05
sem'check understands 'owned procs'
2019-04-11 12:35:49 +02:00
Araq
9f5d9d1993
makes koch.nim sem'check with --newruntime
2019-04-06 19:13:10 +02:00
Andreas Rumpf
bc681a328f
fixes unowned->owned conversion rule
2019-04-06 09:53:59 +02:00
Arne Döring
00f419bcd6
remove check for better error message ( #10926 )
2019-03-29 20:21:28 +01:00
Andreas Rumpf
663b1f2c96
newruntime: bugfixes
2019-03-25 16:45:51 +01:00
Andreas Rumpf
bf592c4e94
more destructor based changes ( #10885 )
...
* mark user defined destructors with sfOverriden to simplify the logic
* refactoring in preparation to merge liftings and generic instantiations for destructors
* ast: introduce nkHiddenTryStmt for destructor generation in order to be able to optimize better the code later on
* renamed 'patterns' switch to 'trmacros' as it was totally misleading before
* destructors: introduce tfCheckedForDestructor flag in preparation of strict =destroy checking
* test for invalid/too late destructor introductions
* liftdestructors: make code robust for nimsuggest
* --newruntime works for hello world again
* newruntime: code generation for closures
2019-03-23 00:12:05 +01:00
cooldome
8ceba8a7f3
fixes #10807 ( #10814 )
...
* fixes #10807
* use nkAddr instead of nkHiddenAddr
2019-03-12 13:45:05 +01:00
Andreas Rumpf
0a93cf6fb9
fixes the regression
2019-03-07 12:55:30 +01:00
Andreas Rumpf
5b1a2eecd5
owned refs must be moved
2019-03-07 12:50:33 +01:00
Andreas Rumpf
e0437dfec4
better error message for 'owned'
2019-03-05 06:25:33 +01:00