On Monday, 11 March 2019 at 22:29:05 UTC, aliak wrote:
Hi,

I have an error that says "Error: returning `match1(opt)` escapes a reference to parameter `opt`, perhaps annotate with `return`".

[...]

Ok, I've found out something else. It only happens when you're returning a type that has an indirection. So instead of the Json type if we returned an S type where S was:

struct S {
  void[2] data;
}

We get the same error.

Reply via email to