We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7263616 commit b2af1f1Copy full SHA for b2af1f1
lib/pure/typetraits.nim
@@ -57,11 +57,11 @@ proc getTypeId*(t: typedesc): TypeId {.since: (1, 1).} =
57
runnableExamples:
58
type Foo[T] = object
59
type Foo2 = Foo
60
- doAssert Foo[int].getTypeId == Foo2[type(1)].getTypeId
61
- doAssert Foo[int].getTypeId != Foo[float].getTypeId
+ assert Foo[int].getTypeId == Foo2[type(1)].getTypeId
+ assert Foo[int].getTypeId != Foo[float].getTypeId
62
TypeId(getTypeIdImpl(t))
63
64
-proc name*(t: typedesc): string {.magic: "TypeTrait".}
+proc name*(t: typedesc): string {.magic: "TypeTrait".} =
65
## Returns the name of the given type.
66
##
67
## Alias for `system.\`$\`(t) <dollars.html#$,typedesc>`_ since Nim v0.20.
0 commit comments