summary refs log tree commit diff stats
path: root/tests/generics
Commit message (Collapse)AuthorAgeFilesLines
* Improved collection-to-string behavior (#6825)Fabian Keller2017-12-141-2/+2
|
* make tests green againAndreas Rumpf2017-11-181-0/+1
|
* Remove expr/stmt (#5857)Arne Döring2017-07-254-5/+5
|
* close #5106Zahary Karadjov2017-06-201-0/+61
|
* close #5756Zahary Karadjov2017-06-201-0/+30
|
* fix #5864Zahary Karadjov2017-06-201-0/+14
|
* Fix #5962Zahary Karadjov2017-06-201-0/+81
| | | | | | | | | | | | | | | During the instantiation of a generic type A, some other generic type B may be instantiated multiple times with different parameters. We can think about each instantiation as a function call that should temporary bind the parameter names to concrete types. The problem with the existing implementation in semtypinst was that it was performing this binding within a shared global table. In this sense, it was executing the code as a programming language featuring only global variables. In such a language, re-entrant functions cannot be defined properly and hence this was leading to problems with similar types. The solution is simple - just like we need to introduce stack frames to handle re-entrant functions, we introduce a stack of type bindings that are pushed and popped during the generic instantiations.
* fixes tproctypecache_falsepositive.nim test caseAraq2017-06-081-0/+17
|
* fix 5756Zahary Karadjov2017-04-301-0/+39
|
* alternative fake covariance based on convertersZahary Karadjov2017-04-282-3/+25
|
* more advanced fake covarianceZahary Karadjov2017-04-281-3/+48
|
* a simple way to simulate covariance in generic typesZahary Karadjov2017-04-281-0/+11
|
* fix a regrsesion in signature matching of derived ptr typesZahary Karadjov2017-04-181-0/+20
|
* fix a compilation error in linalgZahary Karadjov2017-04-161-0/+16
|
* fix #5689Zahary Karadjov2017-04-151-0/+68
|
* fix #5683Zahary Karadjov2017-04-141-0/+15
|
* fix #5643; fix #5644Zahary Karadjov2017-04-081-0/+30
|
* Restore the Nim's 0.14 proper handling of generic aliasesZahary Karadjov2017-04-084-0/+101
| | | | | | | | | | | A more efficient implementation is possible by restoring the old lifting ot tyGenericInvocation to tyGenericInst in liftTypeParam, but this fix will suffice for now. fixes #5087 fixes #5602 fixes #5641 fixes #5570
* attempt to fix #5632 typedesc typeRel regression (#5634)andri lim2017-03-311-0/+12
|
* attempt to fix #5621 #5615 generic ref object typeRel (#5633)andri lim2017-03-311-0/+42
|
* Working test cases for the sophisticated matrix library example from the manualZahary Karadjov2017-03-241-0/+29
| | | | | Fixed the dot operator when used within return types (see tgenericdotrettype) Fixed the matching of generic concepts aliases used with the implicit generics style
* fixes #5597; wrong eager template instantiation in generic context (#5601)Andreas Rumpf2017-03-241-0/+13
|
* fixes #5241, fixes #5411 inherit from specialized generic typeRel problem ↵andri lim2017-03-231-0/+65
| | | | (#5573)
* Fix generic forward declarations; fixes #4104; fixes #4908 (#5566)zah2017-03-232-10/+24
|
* Correct the spelling of the word 'overridden'. (#5212)mfxmfx2017-01-111-3/+3
|
* fix #4884Zahary Karadjov2017-01-081-0/+11
|
* further progress; more tests are greenAraq2016-11-281-1/+1
|
* fixes #4863Andreas Rumpf2016-10-191-0/+20
|
* fixes #4672Andreas Rumpf2016-09-011-0/+12
|
* fixes #4658Andreas Rumpf2016-08-261-0/+13
|
* fixes #4600Andreas Rumpf2016-08-231-0/+8
|
* fixes #4589Andreas Rumpf2016-08-101-0/+7
|
* fixes #4528Andreas Rumpf2016-08-081-0/+8
|
* make tests green againAndreas Rumpf2016-08-011-1/+1
|
* fixes #3055Andreas Rumpf2016-07-081-0/+28
|
* Fix generics inheritance issuesAnatoly Galiulin2016-06-231-0/+25
|
* Merge branch 'patch/fix-3496-generic-tmpl-args' of ↵Andreas Rumpf2016-05-291-0/+31
|\ | | | | | | https://github.com/nanoant/Nim into nanoant-patch/fix-3496-generic-tmpl-args
| * fixes #3496Adam Strzelecki2015-10-291-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem comes from the fact that macroOrTmpl[...] is transformed by semSubscript which is trying to evaluate macroOrTmpl identifier in place. This is okay for non-generic macros or templates, but wrong for generic ones, that do not have a chance to receive their generic arguments explicitly specified in brackets. Solution: 1. macroOrTmpl[...] where macroOrTmpl is non-generic macro or template, then macroOrTmpl is evaluated before applying brackets. (as before) 2. macroOrTmpl[...] where macroOrTmpl is generic macro or template, then if: a. It comes from macroOrTmpl[...](...) call expr (efInCall), then macroOrTmpl is turned into a symbol (efNoEvaluate) rather than evaluating it in place, then whole bracket expr is returned to semIndirectOp which transforms it to proper generic macro or template call with explicit generic arguments. b. macroOrTmpl[...] does not come from call expr, as above macroOrTmpl is transformed to symbol, then it is transformed into proper generic macro or template call with explicit generic arguments and no normal arguments.
* | fixes #4084Andreas Rumpf2016-04-291-0/+16
| |
* | fixes #3998Andreas Rumpf2016-03-281-0/+19
| |
* | fixes #3669Andreas Rumpf2016-03-011-0/+13
| |
* | use 'using' instead of 'sig' keyword; cleans up new features a bitAndreas Rumpf2016-02-293-5/+5
| |
* | Fix a few deprecation warningsdef2016-01-251-5/+5
| |
* | makes tests greenAndreas Rumpf2016-01-151-17/+17
| |
* | Merge branch 'devel' into new-llAndreas Rumpf2016-01-141-8/+17
|\ \
| * | fixes #3498Adam Strzelecki2015-10-301-8/+17
| |/ | | | | | | | | | | | | | | | | Previously it was not possible to use template arguments in template body as the symbols were not resolved correctly leading to Error: undeclared identifier: 'XX', eg.: template defaultOf[T](t: T): expr = (var d: T; d) echo defaultOf(1) #<- invalid identifier, but should output 0
* / fixes another regressionAndreas Rumpf2016-01-131-0/+17
|/
* fixes #3476Araq2015-10-271-0/+48
|
* sequtils related changesPeter Mora2015-10-052-1/+2
|
* fixing TypelessParam warning in x=>x+1, added testPeter Mora2015-09-221-0/+13
|