[ 
https://issues.apache.org/jira/browse/THRIFT-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Geyer resolved THRIFT-4832.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.13.0

Tested on two machines locally, committed (despite of the haskell CI issue)

> superfluous backing field causes CS0169 "field never used"
> ----------------------------------------------------------
>
>                 Key: THRIFT-4832
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4832
>             Project: Thrift
>          Issue Type: Bug
>          Components: netstd - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.13.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The following IDL
> {code}
> exception InvalidFoo \{
>     1: required string bar
> }
> {code}
> when used with {{wcf}} generates code with an superfluous backing field at 
> the Fault class:
> {code}
> [DataContract]
> public partial class InvalidFooFault
> \{
>   private string _bar;   // CS0169 field never used
>   [DataMember(Order = 0)]
>   public string Bar { get; set; }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to