You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Stig Bakken (JIRA)" <ji...@apache.org> on 2014/11/27 07:05:12 UTC
[jira] [Comment Edited] (THRIFT-2857) C# generator creates
uncompilable code for struct constants
[ https://issues.apache.org/jira/browse/THRIFT-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14227291#comment-14227291 ]
Stig Bakken edited comment on THRIFT-2857 at 11/27/14 6:04 AM:
---------------------------------------------------------------
Gotcha ;)
struct Foo {
1: i32 bar;
}
const Foo myFoo = {
"bar": 42
}
was (Author: stigsb):
Gotcha ;)
struct Foo { 1: i32 bar; }
const Foo myFoo = { "bar": 42 }
> C# generator creates uncompilable code for struct constants
> -----------------------------------------------------------
>
> Key: THRIFT-2857
> URL: https://issues.apache.org/jira/browse/THRIFT-2857
> Project: Thrift
> Issue Type: Bug
> Components: C# - Compiler
> Affects Versions: 0.9.2
> Reporter: Stig Bakken
> Assignee: Jens Geyer
> Priority: Minor
>
> If you have constants with struct values, the C# generator does not uppercase member names, leading to compile errors.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)