summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Clean up tests/stdlibdef2015-02-043-33/+37
| | | | | | | 2 tests still fail: - tircbot would need a benign pragma because of the locks - tgetfileinfo uses os.getFileInfo() on nil, which segfaults instead of throwing an exception as the tester expects
* Disable rodfiles tests for nowdef2015-02-041-2/+3
|
* Add test for #1460def2015-02-041-0/+5
|
* Add test for #1459def2015-02-04
discard """
  output: '''(c: hello, a: 10, b: 12.0)
(a: 15.5, b: hello)
(a: 11.75, b: 123)'''
"""

# bug #5231
# generic object inheriting from
# partial specialized generic object
type
  Curve1[T, X] = object of RootObj
    a: T
    b: X

  Curve2[T] = Curve1[T, float64]

  Curve3[T] = object of Curve2[T]
    c: string

  Curve4[T] = Curve1[float64, T]

  Curve5[T] = object of Curve4[T]

  Curve6[T] = object of T

var x: Curve3[int]
x.a = 10
x.b = 12.0
x.c = "hello"

echo x

var y: Curve5[string]
y.b = "hello"
y.a = 15.5

echo y

var z: Curve6[Curve4[int]]
z.a = 11.75
z.b = 123

echo z
/span> | | * | | | Update sequtils.nimdumndummer2015-01-281-2/+2 | | | | | | | | | | | | | | | Renamed param name 'pred' to 'op' in mapIt template to better correspond with map proc in system module * | | | | fixes stupid regressionAraq2015-02-041-1/+1 | | | | | * | | | | C++ support: codegen generates C++'s references and avoids copiesAraq2015-02-047-101/+156 | | | | | * | | | | better error message for auto-derefAraq2015-02-041-0/+2 | | | | | * | | | | Merge pull request #2055 from dumndummer/patch-4reactormonk2015-02-021-1/+1 |\ \ \ \ \ | |_|_|_|/ |/| | | | Update macros.nim | * | | | Update macros.nimdumndummer2015-02-021-1/+1 |/ / / / | | | | | | | | minor doc comment spelling correction * | | | fixes #1989Araq2015-02-012-3/+6 | | | | * | | | slightly better docs for re moduleAraq2015-02-011-0/+6 | |/ / |/| | * | | Merge pull request #2037 from def-/fix-listsAndreas Rumpf2015-02-012-4/+51 |\ \ \ | | | | | | | | Fix SinglyLinkedRing in lists module | * | | Fix SinglyLinkedRing in lists moduledef2015-02-012-4/+51 |/ / / | | | | | | | | | | | | | | | | | | - SinglyLinkedRing's prepend was broken - needed a tail so that prepend can work properly - now append works as well, so I added it too - simple testcase added as well * | | check test resultAraq2015-02-011-0/+4 | | | * | | fixes #2023Araq2015-02-012-3/+19 | | | * | | Merge pull request #2010 from modk/freebsd-parallel-buildAndreas Rumpf2015-02-012-9/+16 |\ \ \ | | | | | | | | Fix parallel build on FreeBSD | * | | FreeBSD-specific codemodk2015-01-291-4/+8 | | | | | * | | Set status to something else than 0modk2015-01-271-1/+1 | | | | | * | | Merge with current develmodk2015-01-262-10/+30 | |\ \ \ | * | | | Fixes parallel build on FreeBSDmodk2015-01-262-9/+12 | | | | | * | | | | Merge pull request #2026 from reactormonk/koch-temp-125-exit-codeAndreas Rumpf2015-02-012-3/+18 |\ \ \ \ \ | | | | | | | | | | | | Koch temp 125 exit code | * | | | | added note about creating stacktracesSimon Hafner2015-01-311-0/+3 | | | | | | | * | | | | added documentation about koch tempSimon Hafner2015-01-281-0/+10 | | | | | | | | | | | | | | | | | | | | | | | | and the 125 exit code | * | | | | koch temp has 125 exit code for git bisectSimon Hafner2015-01-281-3/+5 | | | | | | * | | | | | Merge pull request #2033 from reactormonk/round-in-jsAndreas Rumpf2015-02-012-1/+17 |\ \ \ \ \ \ | | | | | | | | | | | | | | Fixes #1959, rounding floats in JS | * | | | | | Fixes #1959, rounding floats in JSSimon Hafner2015-01-292-1/+17 | | |_|_|_|/ | |/| | | | * | | | | | Merge pull request #2020 from def-/mitemsreactormonk2015-02-017-1/+276 |\ \ \ \ \ \ | | | | | | | | | | | | | | mitems and mpairs | * | | | | | Add tests for mitemsdef2015-01-291-0/+136 | | | | | | | | * | | | | | Add items, mitems and mpairs for cstringsdef2015-01-281-0/+22 | | | | | | | | * | | | | | Typodef2015-01-281-1/+1 | | | | | | | | * | | | | | Add mitems and mpairs where it makes sensedef2015-01-285-0/+117 | | | | | | | * | | | | | | fixes #1988Araq2015-01-312-5/+22 | | | | | | | * | | | | | | fixes #2022Araq2015-01-313-2/+101 | | | | | | | * | | | | | | fixes #2041Araq2015-01-313-8/+13 | | | | | | |