summary refs log tree commit diff stats
path: root/tests/ccgbugs/tuplecast.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tuplecast.nim')
-rw-r--r--tests/ccgbugs/tuplecast.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ccgbugs/tuplecast.nim b/tests/ccgbugs/tuplecast.nim
new file mode 100644
index 000000000..d60e8c490
--- /dev/null
+++ b/tests/ccgbugs/tuplecast.nim
@@ -0,0 +1,8 @@
+
+# bug #4345
+
+# only needs to compile
+proc f(): tuple[a, b: uint8] = (1'u8, 2'u8)
+
+let a, b = f()
+let c = cast[int](b)
evious revision' href='/danisanti/profani-tty/blame/src/preferences.h?id=86d1ff605cc0edd92956083bc86a2b2b46144a34'>^
aa26278a ^
8e0d8d2a ^
d28930ea ^

57f9e435 ^

8e0d8d2a ^
aa26278a ^
e559c33d ^
291c6bc3 ^

6d5d41b3 ^
0a42be57 ^
6d5d41b3 ^
e0732ad0 ^

f9b4abe3 ^

46ee72f9 ^
aa26278a ^



6b697054 ^

acb152d4 ^

9d700f3f ^

2ca8f5b6 ^

1780148f ^

8258e7a3 ^

7982d706 ^

4be7833e ^

3d6ebf48 ^

e8b2b719 ^

aa26278a ^
c71259c3 ^





e559c33d ^
291c6bc3 ^
a114fe88 ^

921f026c ^

213ccc01 ^

c71259c3 ^
5a625dd8 ^








6b697054 ^

6d5d41b3 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98