summary refs log tree commit diff stats
path: root/tests/generics
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression with runnableExamples in generic exprLemonBoy2018-09-302-0/+64
| | | | | | | | The examples should not enter the generic analysis at all. The regression was introduced in 4cf704bb as a fix for #8694. Fixes #9130 Fixes #8694
* 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
| | | | | | | | | | | | | | | | * Add tests to confirm https://github.com/nim-lang/Nim/issues/7231 is fixed. * Add test for closed https://github.com/nim-lang/Nim/issues/6137 * Add test for https://github.com/nim-lang/Nim/issues/7141
* | make test green againAraq2018-08-081-6/+6
|/
* Try conversion to static[T] in generic instantation (#8443)LemonBoy2018-07-301-0/+10
| | | Fixes #8439
* Allow use of typedesc as type converters (#8409)LemonBoy2018-07-241-0/+11
| | | Fixes #8403
* Do not crash while instantiating a generic outside a call (#8279)LemonBoy2018-07-141-0/+7
| | | Fixes #8270
* Reset typedescMatched before paramTypesMatch (#8250)LemonBoy2018-07-091-0/+15
| | | | | The flag should not be carried out across different parameters. Fixes #7794
* 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
| | | | | | | | | | * late instantiation for the generic procs' default param values * automatic mixin behaviour in concepts Other fixes: * don't render the automatically inserted default params in calls * better rendering of tyFromExpr
* fix #7653Zahary Karadjov2018-06-101-1/+3
|
* Fix type inference with static literals.LemonBoy2018-06-101-0/+12
| | | | Fixes #3977
* Bugfix: The compiler were not inserting proper downcasts for generic typesZahary Karadjov2018-05-072-1/+21
| | | | | | | This resulted in a codegen error in C++ mode, because the generic types were not defined in modules where calls requiring downcasts were used (generating a downcast forces the inclusion of the full definition of the involved types).
* 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
|
* 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
|