From 220b45048983998675df761d4f33cd31128f10d5 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 26 Apr 2023 22:32:10 +0200 Subject: fixes #21245; warn about destructors that can raise (#21726) * fixes #21245; warn about destructors that can raise * doc update * progress * typo --- changelogs/changelog_2_0_0.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'changelogs') diff --git a/changelogs/changelog_2_0_0.md b/changelogs/changelog_2_0_0.md index 17f0fcfc4..8a5019731 100644 --- a/changelogs/changelog_2_0_0.md +++ b/changelogs/changelog_2_0_0.md @@ -179,7 +179,7 @@ for 64-bit integer types (`int64` and `uint64`) by default. As this affects JS code generation, code using these types to interface with the JS backend may need to be updated. Note that `int` and `uint` are not affected. - + For compatibility with [platforms that do not support BigInt](https://caniuse.com/bigint) and in the case of potential bugs with the new implementation, the old behavior is currently still supported with the command line option @@ -195,7 +195,7 @@ iterator iter(): int = yield 123 - + proc takesProc[T: proc](x: T) = discard proc takesIter[T: iterator](x: T) = discard @@ -221,10 +221,15 @@ - Signed integer literals in `set` literals now default to a range type of `0..255` instead of `0..65535` (the maximum size of sets). - + - Case statements with else branches put before elif/of branches in macros are rejected with "invalid order of case branches". +- Destructors now default to `.raises: []` (i.e. destructors must not raise + unlisted exceptions) and explicitly raising destructors are implementation + defined behavior. + + ## Standard library additions and changes [//]: # "Changes:" -- cgit 1.4.1-2-gfad0 ff stats
path: root/tests/overload/tissue966.nim
blob: 59c43c8f982afacb22eb5de9eb1db70a1c992235 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12