From eee9729f536fecd94565e879f28edcb73bcf3861 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 23 Jan 2019 07:30:49 +0100 Subject: Fix semantic analysis with noReturn proc in tail pos (#10422) Fixes #10417 --- tests/exception/texceptions.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/exception') diff --git a/tests/exception/texceptions.nim b/tests/exception/texceptions.nim index b30b3874b..d63187b0e 100644 --- a/tests/exception/texceptions.nim +++ b/tests/exception/texceptions.nim @@ -64,3 +64,13 @@ proc return_in_except = try: return_in_except() except: echo "RECOVER" +block: #10417 + proc moo() {.noreturn.} = discard + + let bar = + try: + 1 + except: + moo() + + doAssert(bar == 1) -- cgit 1.4.1-2-gfad0 ption> 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/doc/docs.md
blob: b6ff6d2c70bc6cb7a6adc1cd571c7f3d3b0bcff1 (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
href='#n38'>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