[
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)