From 0521f98486a6a95b388864747d584ddd5bf68391 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sun, 29 Mar 2020 02:17:47 +0200 Subject: Hrm, the new errors highlighted some code that seems to be broken New issue: since `Table[A, B]` allocates its backing storage with `newSeq[KeyValuePair[A, B]]`, it's no longer legal to create a table with `not nil` types used as either keys or values. --- tests/discard/tneedsdiscard_in_for.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/discard/tneedsdiscard_in_for.nim') diff --git a/tests/discard/tneedsdiscard_in_for.nim b/tests/discard/tneedsdiscard_in_for.nim index 499b06009..ab5216150 100644 --- a/tests/discard/tneedsdiscard_in_for.nim +++ b/tests/discard/tneedsdiscard_in_for.nim @@ -8,7 +8,7 @@ type Rgba8 = object proc premultiply*(c: var Rgba8): var Rgba8 = - discard + return c type App = ref object -- cgit 1.4.1-2-gfad0