summary refs log tree commit diff stats
path: root/tests/generics
Commit message (Expand)AuthorAgeFilesLines
* [backport] fix #12528, fix #12525: incorrect generic type resolution for defa...Andreas Rumpf2019-10-281-0/+14
* Refactor json macro (#12391)Arne Döring2019-10-171-0/+73
* ungeneric unsigned ops (#12230)Jasper Jenkins2019-10-111-8/+0
* fixes subtype relation regressionAraq2019-05-221-1/+1
* fixes #11239Araq2019-05-221-1/+1
* fixes #6732 (#11255)Andreas Rumpf2019-05-151-0/+21
* fixes #88 (#11243)Andreas Rumpf2019-05-151-2/+25
* 32 bit fixes (#10608)Arne Döring2019-02-131-0/+2
* Propagate tfGcSafe flag to generic instantiations (#10620)LemonBoy2019-02-131-0/+11
* Fix for issue #10342. better message for generic subclass instantiation (#10354)Ray Imber2019-01-222-1/+12
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ...Timothee Cour2019-01-081-1/+1
* megatest: make it green on LinuxAraq2018-12-113-4/+3
* make more tests greenAraq2018-12-112-36/+8
* testament: joinable is now an explicit concept of a test specAndreas Rumpf2018-12-111-0/+3
* Testament: refactoring; makes the test joiner greenAraq2018-12-116-2/+10
* lots of small changesArne Döring2018-12-114-4/+4
* megatest checks output and nimoutArne Döring2018-12-114-133/+127
* require errormsg to be specified before file.Arne Döring2018-12-116-16/+3
* cleanup tests; don't use non-working 'msg' spec fieldAraq2018-11-231-1/+1
* updated tests to be executedArne Döring2018-11-232-2/+13
* make run the default action of a test in testerArne Döring2018-11-232-1/+13
* disable some tests for the C++ target; refs #7870Araq2018-11-151-9/+10
* adopt testsArne Döring2018-11-081-1/+1
* More descriptive names of test files (#9531)Miran2018-10-293-6/+8
* closes #6220Araq2018-10-181-0/+415
* make some tests faster (#9413)Miran2018-10-171-5/+5
* Merge tests into a larger file (part 5 of ∞) (#9368)Miran2018-10-161-1/+1
* Merge tests into a larger file (part 3 of ∞: generics) (#9347)Miran2018-10-1465-1276/+1236
* add issue #5707 as test case (#9361)Vindaar2018-10-141-0/+6
* fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 ...Timothee Cour2018-10-091-3/+3
* Fix regression with runnableExamples in generic exprLemonBoy2018-09-302-0/+64
* fixes #8883Araq2018-09-141-0/+657
* fixes #7854Araq2018-08-301-0/+36
* make generic tests green againAndreas Rumpf2018-08-131-2/+2
* Merge branch 'devel' into araq-miscAndreas Rumpf2018-08-102-0/+39
|\
| * Tests for v1 closed generics/static issues (#8572)Mamy Ratsimbazafy2018-08-082-0/+39
* | make test green againAraq2018-08-081-6/+6
|/
* Try conversion to static[T] in generic instantation (#8443)LemonBoy2018-07-301-0/+10
* Allow use of typedesc as type converters (#8409)LemonBoy2018-07-241-0/+11
* Do not crash while instantiating a generic outside a call (#8279)LemonBoy2018-07-141-0/+7
* Reset typedescMatched before paramTypesMatch (#8250)LemonBoy2018-07-091-0/+15
* make tests green againAndreas Rumpf2018-07-054-5/+5
* fix #6928; fix #7208Zahary Karadjov2018-06-161-0/+21
* fixes #7222; fixes #5595; fixes #3747Zahary Karadjov2018-06-161-0/+124
* fix #7653Zahary Karadjov2018-06-101-1/+3
* Fix type inference with static literals.LemonBoy2018-06-101-0/+12
* Bugfix: The compiler were not inserting proper downcasts for generic typesZahary Karadjov2018-05-072-1/+21
* fixes #7247Andreas Rumpf2018-02-231-6/+15
* make more tests greenAraq2018-02-102-2/+2
* better type inference for numerical types; prerequisitive for version 1Andreas Rumpf2018-02-021-0/+12
+0200 importjs symbol (#12218)' href='/ahoang/Nim/commit/changelog.md?h=devel&id=38ab51c44572b78845fa62b0c0a597a46a63ad28'>38ab51c44 ^
b70fd0400 ^

245a954b2 ^
737fff590 ^
38ab51c44 ^
b70fd0400 ^
e3e17009f ^
114da04cb ^
f7d2f9c5f ^
e3e17009f ^
737fff590 ^
ffa9a7405 ^


f7d2f9c5f ^
737fff590 ^
b70fd0400 ^
a4ade4353 ^
ffa9a7405 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
                  
 
 
                                            
 

 
                                            
 









                                                                             
 
                                    
 

                                                                               
                                             
 
 
 
                    
 
                                                 
                                                                           

                                                                         

                                                                             
 
 




                                                                                         
                  
 





                                                                                       
                                                                   


                                                                          
                                                                               

 
                     
 

                                                                            
 

                   
                                                                                     
 
 
                
 
 
 
                    
 


                                                                       
 
 
           
 

                                                                             
# x.x - xxxx-xx-xx


## Changes affecting backwards compatibility



### Breaking changes in the standard library

- `base64.encode` no longer supports `lineLen` and `newLine`.
  Use `base64.encodeMIME` instead.
- `os.splitPath()` behavior synchronized with `os.splitFile()` to return "/"
   as the dir component of "/root_sub_dir" instead of the empty string.
- `sequtils.zip` now returns a sequence of anonymous tuples i.e. those tuples
  now do not have fields named "a" and "b".
- `strutils.formatFloat` with `precision = 0` has the same behavior in all
  backends, and it is compatible with Python's behavior,
  e.g. `formatFloat(3.14159, precision = 0)` is now `3`, not `3.`.


### Breaking changes in the compiler

- Implicit conversions for `const` behave correctly now, meaning that code like
  `const SOMECONST = 0.int; procThatTakesInt32(SOMECONST)` will be illegal now.
  Simply write `const SOMECONST = 0` instead.



## Library additions

- `macros.newLit` now works for ref object types.
- `system.writeFile` has been overloaded to also support `openarray[byte]`.
- Added overloaded `strformat.fmt` macro that use specified characters as
  delimiter instead of '{' and '}'.
- introduced new procs in `tables.nim`: `OrderedTable.pop`, `CountTable.del`,
  `CountTable.pop`, `Table.pop`


- Added `sugar.outplace` for turning in-place algorithms like `sort` and `shuffle` into
  operations that work on a copy of the data and return the mutated copy. As the existing
  `sorted` does.


## Library changes

- `asyncdispatch.drain` now properly takes into account `selector.hasPendingOperations`
  and only returns once all pending async operations are guaranteed to have completed.
- `asyncdispatch.drain` now consistently uses the passed timeout value for all
  iterations of the event loop, and not just the first iteration.
  This is more consistent with the other asyncdispatch apis, and allows
  `asyncdispatch.drain` to be more efficient.
- `base64.encode` and `base64.decode` was made faster by about 50%.
- `htmlgen` adds [MathML](https://wikipedia.org/wiki/MathML) support
  (ISO 40314).
- `macros.eqIdent` is now invariant to export markers and backtick quotes.
- `htmlgen.html` allows `lang` on the `<html>` tag and common valid attributes.


## Language additions

- An `align` pragma can now be used for variables and object fields, similar
  to the `alignas` declaration modifier in C/C++.

## Language changes

- Unsigned integer operators have been fixed to allow promotion of the first operand.


### Tool changes



### Compiler changes

- JS target indent is all spaces, instead of mixed spaces and tabs, for
  generated JavaScript.



## Bugfixes

- The `FD` variant of `selector.unregister` for `ioselector_epoll` and
  `ioselector_select` now properly handle the `Event.User` select event type.