New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592883 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

mojo: typemaps and {generated struct}.Clone() do not go together

Project Member Reported by darin@chromium.org, Mar 8 2016

Issue description

mojo: typemaps and {generated struct}.Clone() do not go together

If you have a struct w/ a member of a custom type and specify a typemap for that custom type, then the struct's generated Clone() method will fail to be supported if the custom type does not have a corresponding Clone() method.
 

Comment 1 by darin@chromium.org, Mar 8 2016

One option here is to suppress generation of Clone. Another option is to implement it using StructTraits. The former seems better unless we really need the Clone methods.

Comment 2 by darin@chromium.org, Mar 8 2016

Here's one possible solution:
https://codereview.chromium.org/1768373003

It is a bit of a hack as the struct walking code doesn't know about typemaps.

Comment 4 by darin@chromium.org, Mar 8 2016

Status: Fixed (was: Untriaged)

Sign in to add a comment