Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix #13517 (#16681) | flywind | 2021-01-11 | 1 | -0/+14 |
| | |||||
* | Make `{.requiresInit.}` to work for distinct types (#15869) | Ivan Bobev | 2020-11-06 | 1 | -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) | flywind | 2020-09-21 | 1 | -0/+15 |
| | | | | | | | * add testcase for #7165 * Remove overspecific testament spec Co-authored-by: Clyybber <darkmine956@gmail.com> | ||||
* | fixes #11715 (#11721) | Andreas Rumpf | 2019-07-13 | 1 | -0/+8 |
| | |||||
* | fixes #7167 (#11300) | Andreas Rumpf | 2019-05-22 | 1 | -0/+15 |
| | | | | | | * fixes #7167 * spec: distinct types can be ordinal types * bootstrapping issue | ||||
* | lots of small changes | Arne Döring | 2018-12-11 | 1 | -4/+2 |
| | |||||
* | require errormsg to be specified before file. | Arne Döring | 2018-12-11 | 1 | -2/+2 |
| | |||||
* | More descriptive names of test files (#9531) | Miran | 2018-10-29 | 1 | -0/+0 |
| | | | | | * change generic `tissues` name to more specific * change `tvarious` to more specific names | ||||
* | fixes #2760 | Araq | 2018-10-15 | 1 | -0/+10 |
| | |||||
* | Merge tests into a larger file (part 2 of ∞) (#9335) | Miran | 2018-10-13 | 9 | -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) | LemonBoy | 2018-10-12 | 1 | -0/+12 |
| | | | Fixes #9322 | ||||
* | fixes #4435 (#9185) | jcosborn | 2018-10-09 | 1 | -0/+21 |
| | |||||
* | Constant folding should not drop distinct types | LemonBoy | 2018-09-27 | 1 | -0/+19 |
| | | | | Fixes #9079 | ||||
* | Test case for #7010 | Ganesh Viswanathan | 2018-09-14 | 1 | -0/+19 |
| | |||||
* | make tests green again | Araq | 2018-08-13 | 1 | -15/+0 |
| | |||||
* | make tests green | Araq | 2018-05-02 | 1 | -9/+6 |
| | |||||
* | make tests on Windows green | Araq | 2017-01-31 | 1 | -0/+1 |
| | |||||
* | test case cleanup | Andreas Rumpf | 2016-08-26 | 1 | -4/+4 |
| | |||||
* | Allowing `nil` for distinct types where the base type is nilable | Hans Raaf | 2016-08-05 | 1 | -0/+47 |
| | |||||
* | tests: Trim .nim files trailing whitespace | Adam Strzelecki | 2015-09-04 | 1 | -2/+2 |
| | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} + | ||||
* | fixes #2629, fixes #2641, fixes #2632, fixes #2630 | Araq | 2015-05-03 | 1 | -0/+20 |
| | |||||
* | borrow dots for distinct types documented | Araq | 2014-03-26 | 1 | -0/+13 |
| | |||||
* | new tester; all tests categorized | Araq | 2014-01-13 | 1 | -0/+38 |