Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | resolve unambiguous enum symchoices from local scope, error on rest (#22606) | metagn | 2023-09-03 | 2 | -8/+26 |
| | | | | | | | | | | | | | | | | fixes #22598, properly fixes #21887 and fixes test case issue number When an enum field sym choice has to choose a type, check if its name is ambiguous in the local scope, then check if the first symbol found in the local scope is the first symbol in the sym choice. If so, choose that symbol. Otherwise, give an ambiguous identifier error. The dependence on the local scope implies this will always give ambiguity errors for unpicked enum symchoices from generics and templates and macros from other scopes. We can change `not isAmbiguous(...) and foundSym == first` to `not (isAmbiguous(...) and foundSym == first)` to make it so they never give ambiguity errors, and always pick the first symbol in the symchoice. I can do this if this is preferred, but no code from CI seems affected. | ||||
* | fixes #21887; Type conversion on overloaded enum field does not always call ↵ | ringabout | 2023-05-26 | 1 | -0/+8 |
| | | | | | | | | | | | (#21908) * fixes #21887; Type conversion on overloaded enum field does not always call * remove comments * add a test case * restrict it to enums | ||||
* | fixes #21863; Incorrect enum field access can cause internal error (#21886) | ringabout | 2023-05-24 | 1 | -0/+28 |
| | | | fixes 21863; Incorrect enum field access can cause internal error | ||||
* | fixes #21280; Enum with int64.high() value crashes compiler (#21285) | ringabout | 2023-05-06 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | * fixes #21280; Enum with int64.high() value crashes compiler * Update tests/enum/tenum.nim * Update tests/enum/tenum.nim * fixes tests * Update tests/enum/tenum.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de> | ||||
* | megatest now checks refc too (#21341) | ringabout | 2023-02-09 | 1 | -1/+2 |
| | | | | | * megatest now checks refc too * fixes refc | ||||
* | fixes #21207; reports redefinition error in the definition of enums (#21217) | ringabout | 2023-01-03 | 1 | -0/+9 |
| | | | | | * fixes #21207; reports redefinition in the enums * add a test | ||||
* | closes #12589; add testcase (#20769) | ringabout | 2022-11-06 | 1 | -2/+14 |
| | | | | | | | * fixes #12589; add testcase * fixes i386 * i386 | ||||
* | closed ambiguous enum defaults to first overload (#20457) | metagn | 2022-10-01 | 1 | -0/+5 |
| | | | | | | | | | * closed ambiguous enum defaults to first overload * add warning * turn to hint * work around config | ||||
* | overloadable enums no longer experimental (#20298) | metagn | 2022-09-05 | 3 | -13/+12 |
| | | | depends on #20126 | ||||
* | only allow enums to overload enums + extra test (#20126) | metagn | 2022-09-03 | 1 | -0/+34 |
| | | | mirror behavior without overloadableEnums | ||||
* | add testcase for #16462 (#19692) | flywind | 2022-04-07 | 3 | -0/+11 |
| | |||||
* | fixes a regression caused by overloadable enums even though they're opt-in ↵ | Andreas Rumpf | 2021-10-07 | 2 | -0/+17 |
| | | | | (#18970) | ||||
* | fixes #18769 (#18790) | Andreas Rumpf | 2021-09-03 | 1 | -1/+10 |
| | |||||
* | add testcase for overloadable_enums (#18722) | flywind | 2021-08-21 | 1 | -0/+29 |
| | | | | | * add testcase for overloadable_enums * link | ||||
* | implements overloadable enum values; WIP (#18470) | Andreas Rumpf | 2021-07-28 | 1 | -0/+48 |
| | | | | | * implements overloadable enum values * simpler code | ||||
* | followup #17876: remove annoying enum name clashes in tests/enum/tenum.nim ↵ | Timothee Cour | 2021-06-17 | 1 | -12/+11 |
| | | | | (#18291) | ||||
* | type with same name in different scope now works (#17710) | Timothee Cour | 2021-04-14 | 1 | -2/+3 |
| | | | | * type with same name in different scope now works * fix tests/enum/tenum.nim which was wrong because it was affected by this bug | ||||
* | fix #15145 (#15816) | flywind | 2020-11-02 | 1 | -0/+11 |
| | |||||
* | fix #15752 (#15754) | cooldome | 2020-10-28 | 1 | -0/+9 |
| | |||||
* | fix enumtostr crash for enum-range (#13035) | Jasper Jenkins | 2020-01-05 | 1 | -0/+12 |
| | |||||
* | add tests for recently closed issues (#10722) | Miran | 2019-02-23 | 1 | -0/+9 |
| | |||||
* | 32 bit fixes (#10608) | Arne Döring | 2019-02-13 | 1 | -2/+2 |
| | |||||
* | Deprecated pragma is now supported on enum fields (#10113) | Neelesh Chandola | 2018-12-30 | 2 | -0/+32 |
| | | | | | | * {.deprecated.} pragma is now supported for enum fields * Add tests * Simplify code | ||||
* | require errormsg to be specified before file. | Arne Döring | 2018-12-11 | 1 | -3/+1 |
| | |||||
* | fixes #8671; show helpful msg (lookup symbol, eg iterator) on 'attempting to ↵ | Timothee Cour | 2018-10-14 | 1 | -1/+1 |
| | | | | call undeclared routine' error (#8786) | ||||
* | Merge tests into a larger file (part 2 of ∞) (#9335) | Miran | 2018-10-13 | 9 | -139/+144 |
| | | | | | | | | | | | | | | * merge controlflow tests * merge distinct tests * merge enum tests * merge fields tests * merge implicit tests * merge iter issues tests | ||||
* | fixes #8066 | Araq | 2018-08-31 | 1 | -0/+19 |
| | |||||
* | remove dead code elimination option (#7669) | Jacek Sieka | 2018-04-23 | 1 | -1/+1 |
| | |||||
* | Fixes #5062 (#5527); JS: holes in enums | Silvio | 2017-03-15 | 3 | -16/+39 |
| | |||||
* | fixes #5148 | Araq | 2016-12-29 | 1 | -0/+7 |
| | |||||
* | Added a test case | Yuriy Glukhov | 2016-05-18 | 1 | -0/+6 |
| | |||||
* | add tfile/tline assertions for template expansion file/line | Aman Gupta | 2015-10-06 | 1 | -2/+2 |
| | |||||
* | tests: Trim .nim files trailing whitespace | Adam Strzelecki | 2015-09-04 | 6 | -35/+35 |
| | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} + | ||||
* | s/procedure/routine/ in tests. | Dominik Picheta | 2015-06-05 | 1 | -1/+1 |
| | |||||
* | Fixes #2584 | Dominik Picheta | 2015-06-04 | 1 | -1/+1 |
| | | | | | Better compiler errors for accessing undeclared fields, calling undeclared procedures and procedure fields. | ||||
* | fixes --gc:none regression; made some tests green | Araq | 2015-03-10 | 1 | -1/+1 |
| | |||||
* | Fixes tenumitems test. | Dominik Picheta | 2014-08-16 | 1 | -1/+1 |
| | |||||
* | new tester; all tests categorized | Araq | 2014-01-13 | 9 | -0/+140 |