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 cb0f7c5 commit b80d293Copy full SHA for b80d293
tests/metatype/ttypedesc2.nim
@@ -35,9 +35,23 @@ type Point[T] = tuple[x, y: T]
35
proc origin(T: typedesc): Point[T] = discard
36
discard origin(int)
37
38
+block: # issue #12704
39
+ const a = $("a", "b")
40
+ proc fun() =
41
+ const str = $int
42
+ let b = $(str, "asdf")
43
+ fun()
44
+
45
# https://github.com/nim-lang/Nim/issues/7516
46
import typetraits
47
48
+block: #issue #12704
49
50
51
+ const str = name(int)
52
53
54
55
proc hasDefault1(T: type = int): auto = return T.name
56
doAssert hasDefault1(int) == "int"
57
doAssert hasDefault1(string) == "string"
0 commit comments