summary refs log tree commit diff stats
path: root/tests/distinct
Commit message (Collapse)AuthorAgeFilesLines
* fix #9423 followup #17594: distinct generics now work in VM (#21816)ringabout2023-05-101-1/+25
| | | | | | | | | * fix #9423 distinct generics now work in vm * fixes cpp tests --------- Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* remove a special case in sigmatch; distinct pointer types no longer match ↵ringabout2022-08-231-13/+5
| | | | | | | | | | | | | | | | `nil` type (#20251) * remove a special case in sigmatch; distinct pointer types no longer match `nil` type * add tests * fixes tests * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fix distinct requiresInit test and manual (#19901)Khaled Hammouda2022-06-221-3/+3
| | | fix distinct test and manual
* Fixed generic distinct conversions for 'var' (#18837)Jason Beetham2021-10-261-0/+17
| | | | | | | | | | | | | | | * SameTypeAux now properly traverses generic distincts * Smarter traversal of distincts * Removed redundant check * Fixed nkConv for jsgen * Added test for non distinct nkConv * using skiptypes for distinct now * Fixed genaddr for nkconv
* Fix subranges of distinct types (#18816) [backport]Jason Beetham2021-09-071-0/+14
|
* fix #12282 distinct now does not create erroneous copy in VM (#17594)Timothee Cour2021-03-311-0/+32
|
* fix #13517 (#16681)flywind2021-01-111-0/+14
|
* Make `{.requiresInit.}` to work for distinct types (#15869)Ivan Bobev2020-11-061-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `requiresInit` pragma to work for distinct types in addition to objects. Tagging of distinct types with `requiresInit` pragma was already supported, but its impact wasn't applied. Now its behavior when applied on distinct types is as follows. Given the following distinct type definitions: ```nim type DistinctObject {.requiresInit, borrow: `.`.} = distinct MyObject DistinctString {.requiresInit.} = distinct string ``` The following code blocks will fail to compile: ```nim var foo: DistinctFoo foo.x = "test" doAssert foo.x == "test" ``` ```nim var s: DistinctString s = "test" doAssert s == "test" ``` But these ones will compile successfully: ```nim let foo = DistinctFoo(Foo(x: "test")) doAssert foo.x == "test" ``` ```nim let s = "test" doAssert s == "test" ```
* add testcase for #7165 (#15368)flywind2020-09-211-0/+15
| | | | | | | * add testcase for #7165 * Remove overspecific testament spec Co-authored-by: Clyybber <darkmine956@gmail.com>
* fixes #11715 (#11721)Andreas Rumpf2019-07-131-0/+8
|
* fixes #7167 (#11300)Andreas Rumpf2019-05-221-0/+15
| | | | | | * fixes #7167 * spec: distinct types can be ordinal types * bootstrapping issue
* lots of small changesArne Döring2018-12-111-4/+2
|
* require errormsg to be specified before file.Arne Döring2018-12-111-2/+2
|
* More descriptive names of test files (#9531)Miran2018-10-291-0/+0
| | | | | * change generic `tissues` name to more specific * change `tvarious` to more specific names
* fixes #2760Araq2018-10-151-0/+10
|
* Merge tests into a larger file (part 2 of ∞) (#9335)Miran2018-10-139-142/+144
| | | | | | | | | | | | | | * merge controlflow tests * merge distinct tests * merge enum tests * merge fields tests * merge implicit tests * merge iter issues tests
* string to string conversion keeps the dest type (#9323)LemonBoy2018-10-121-0/+12
| | | Fixes #9322
* fixes #4435 (#9185)jcosborn2018-10-091-0/+21
|
* Constant folding should not drop distinct typesLemonBoy2018-09-271-0/+19
| | | | Fixes #9079
* Test case for #7010Ganesh Viswanathan2018-09-141-0/+19
|
* make tests green againAraq2018-08-131-15/+0
|
* make tests greenAraq2018-05-021-9/+6
|
* make tests on Windows greenAraq2017-01-311-0/+1
|
* test case cleanupAndreas Rumpf2016-08-261-4/+4
|
* Allowing `nil` for distinct types where the base type is nilableHans Raaf2016-08-051-0/+47
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-2/+2
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* fixes #2629, fixes #2641, fixes #2632, fixes #2630Araq2015-05-031-0/+20
|
* borrow dots for distinct types documentedAraq2014-03-261-0/+13
|
* new tester; all tests categorizedAraq2014-01-131-0/+38