cooldome
9ef1acac64
fix #13909 ( #13914 ) [backport:1.2]
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
(cherry picked from commit f86fc5316a )
2020-04-14 07:30:24 +02:00
Timothee Cour
f34779c289
fix #13902 distinct uint64 type corruption on 32-bit with borrow ( #13907 ) [backport:1.2]
...
* fix #13902 distinct uint64 type corruption on 32-bit with borrow
Co-authored-by: Timothee Cour <timothee.cour2+lightsail@gmail.com >
(cherry picked from commit 95fd8ae93c )
2020-04-14 07:30:14 +02:00
Clyybber
078df45e99
Fix #13889 with testcase ( #13896 ) [backport]
...
* Fix https://github.com/nim-lang/Nim/issues/13889
* Add testcase
* Reduce test time
Co-authored-by: Elie Zedeck RANDRIAMIANDRIRAY <elie.zedeck@gmail.com >
(cherry picked from commit 92c4aad205 )
2020-04-14 07:30:06 +02:00
Timothee Cour
adf644d6a4
openDefaultBrowser now works on OSX ( #13892 ) [backport]
...
(cherry picked from commit e6d870896b )
2020-04-14 07:29:59 +02:00
Timothee Cour
0d59ec9b54
fix https://github.com/timotheecour/Nim/issues/88 ( #13865 ) [backport:1.2]
...
(cherry picked from commit f1fd3ef7f4 )
2020-04-14 07:29:37 +02:00
supakeen
c4dfdb71f4
Add isNil check to custom Content-Length. ( #13867 ) [backport:1.2]
...
Related to #13866 .
(cherry picked from commit 09ca19208f )
2020-04-14 07:29:26 +02:00
narimiran
7e83adff84
bump Nim version to 1.2.0
v1.2.0
2020-04-03 14:17:15 +02:00
Alexander Ivanov
920add5880
sourcemaps for the JS codegen ( #7508 )
2020-04-03 12:06:23 +02:00
Andreas Rumpf
2b3b24a804
make bootstrapping more robust for people who have Nim inside /usr/bin ( #13855 )
2020-04-03 10:25:15 +02:00
itsumura-h
87e6b88f3b
fix #7241 ( #13779 )
...
finalize() should run in insert()
2020-04-03 09:38:05 +02:00
Timothee Cour
93cd98dd14
move tinyc to a separate repo and allow installing external dependencency (eg tinyc) from koch / library code ( #13850 )
...
* remove tinyc
* installDeps
* update tinyc paths
2020-04-03 09:10:45 +02:00
flywind
6b9ffc7fad
fix asynchttpserver content-length header ( #13846 )
2020-04-03 09:05:43 +02:00
Timothee Cour
d23371fdd7
std/byaddr => std/decls ( #13847 )
2020-04-03 09:03:13 +02:00
narimiran
7d17cd34b8
create a changelog for v1.2.0
2020-04-02 16:28:01 +02:00
Araq
8ee0771b5a
return types must not be Natural for reasons I won't outline here
2020-04-02 15:01:14 +02:00
Araq
d01fca974d
added an .assert pragma and mentioned the pragmas in the changelog
2020-04-02 12:57:32 +02:00
Dean Eigenmann
df8e0e7f0c
feature/count ( #13837 )
2020-04-02 12:09:29 +02:00
Andreas Rumpf
d01245e501
renamed new std/pragmas.nim to std/byaddr.nim ( #13844 )
...
* renamed new std/pragmas.nim to std/byaddr.nim
* minor code cleanup
2020-04-02 11:52:31 +02:00
Timothee Cour
68539a2926
fix last remaining warning when building nim (intVal should be Int128) + minor cleanups ( #13841 )
2020-04-02 08:53:52 +02:00
Juan Carlos
c167261735
Deprecate PHP ( #13838 )
2020-04-02 08:48:09 +02:00
Juan Carlos
160d5fe589
Jsconsole update ( #12448 )
...
* Improve jsconsole adding the rest of the stable api as documented on the standard at https://developer.mozilla.org/docs/Web/API/Console
* Improve jsconsole, add runnableexamples
* Simplify jsconsole
2020-04-02 08:47:45 +02:00
Juan Carlos
46ca19ff18
Deprecate DCE:on ( #13839 )
2020-04-02 02:58:43 +02:00
Juan Carlos
afd0afe0a3
Deprecate when declared(echo):echo ( #13840 )
2020-04-02 02:56:18 +02:00
Juan Carlos
9102ac8c7d
Documentation and Code Style inotify ( #13836 )
2020-04-02 01:05:55 +02:00
Juan Carlos
9599757068
Add browsers.openDefaultBrowser without URL, implements IETF RFC-6694 Section-3 ( #13835 )
2020-04-01 15:46:47 -04:00
Andreas Rumpf
bc37668c5a
fixes #13782 ( #13834 )
2020-04-01 20:30:28 +02:00
Juan Carlos
4816984726
Documentation, add more examples ( #13825 )
2020-04-01 19:39:58 +02:00
Andreas Rumpf
484548c784
revert stdlib changes which are not required anymore
2020-04-01 19:38:44 +02:00
Zahary Karadjov
66f18037b3
Fix tests/types/tparameterizedparent0
2020-04-01 19:38:44 +02:00
Zahary Karadjov
08afa03075
The raises list can now use expressions referencing the generic params
2020-04-01 19:38:44 +02:00
Zahary Karadjov
be95f8fdfa
Turn some of the errors back into warnings
2020-04-01 19:38:44 +02:00
Zahary Karadjov
ce9a4ed124
Replace tfHasRequiresInit with a more accurate mechanism
...
The new mechanism can deal with more complex scenarios such as
not nil field appearing in a non-default case object branch or
a field within a generic object that may depend on a when branch.
The commit also plugs another hole: the user is no longer able
to create illegal default values through seq.setLen(N).
2020-04-01 19:38:44 +02:00
Zahary Karadjov
d374c6373b
Fix tests/parallel/tguard2.nim
2020-04-01 19:38:44 +02:00
Zahary Karadjov
2b66d66567
Fix a CI failure during koch doc
2020-04-01 19:38:44 +02:00
Zahary Karadjov
e63b673ce2
Fix https://github.com/nim-lang/Nim/issues/4907
2020-04-01 19:38:44 +02:00
Zahary Karadjov
06438ed143
Close https://github.com/nim-lang/Nim/issues/11428
2020-04-01 19:38:44 +02:00
Zahary Karadjov
4f3d309fb0
Perform nil checks during object construction and within compiles()
...
Close https://github.com/nim-lang/Nim/issues/6494
2020-04-01 19:38:44 +02:00
Zahary Karadjov
7b7e42be54
More precise error messages for uninitialized fields in the presence of inheritance
2020-04-01 19:38:44 +02:00
Zahary Karadjov
0521f98486
Hrm, the new errors highlighted some code that seems to be broken
...
New issue: since `Table[A, B]` allocates its backing storage with
`newSeq[KeyValuePair[A, B]]`, it's no longer legal to create a table
with `not nil` types used as either keys or values.
2020-04-01 19:38:44 +02:00
Zahary Karadjov
f3be5a716f
not nil types are illegal to construct through default(T)
2020-04-01 19:38:44 +02:00
Zahary Karadjov
1b570f2b18
Turn the warning for uninitialized (result) variables into errors
2020-04-01 19:38:44 +02:00
Zahary Karadjov
e0bb78553a
Fix tests/notnil/tnotnil_in_objconstr.nim
2020-04-01 19:38:44 +02:00
Zahary Karadjov
54f06427c8
Enable the requiresInit checks only for objects
2020-04-01 19:38:44 +02:00
Zahary Karadjov
8ae48292ff
Plug another hole: default(T) forbidden for objects requiring initialization
2020-04-01 19:38:44 +02:00
Zahary Karadjov
05a0ec4adb
Don't allow 'var x: T' for objects that require initialization
2020-04-01 19:38:44 +02:00
Zahary Karadjov
7652aede41
More sophistication; Allow requiresInit to be specified per-field
2020-04-01 19:38:44 +02:00
Zahary Karadjov
a8b6222c86
First steps, the compiler can boot with enforced requiresInit
2020-04-01 19:38:44 +02:00
Timothee Cour
216fd59c44
make usage of foo is a user-defined error more informative ( #13833 )
2020-04-01 17:49:29 +02:00
Timothee Cour
d3020af44d
fix open file leak when running --debugger:native ( #13832 )
2020-04-01 17:48:17 +02:00
Araq
c2d29eb3e0
updated the changelog
2020-04-01 14:10:47 +02:00