From 6b88ce3384c453fa3e872e059f5d9c73f247f42b Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Fri, 8 Feb 2019 08:59:38 +0100 Subject: Stop useless suggestion of unsafeAddr (#10598) Fixes #10594 --- tests/errmsgs/t10594.nim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/errmsgs/t10594.nim (limited to 'tests/errmsgs') diff --git a/tests/errmsgs/t10594.nim b/tests/errmsgs/t10594.nim new file mode 100644 index 000000000..c9506c542 --- /dev/null +++ b/tests/errmsgs/t10594.nim @@ -0,0 +1,7 @@ +discard """ + errormsg: "expression has no address" + line: 7 +""" + +template foo(v: varargs[int]) = unsafeAddr v +foo(1, 2) -- cgit 1.4.1-2-gfad0 eef6206ea08a94fea06c4d226a6'/> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/compiler/renderverbatim.nim
blob: 974454456bee129ee03c1113ef5cf871ca352f43 (plain) (blame)
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