blob: da47a6314296cb511e087a31dd314266c617029e [file] [log] [blame]
Jens Geyer6f86f9a2014-07-08 21:31:52 +02001// Naming testcases, sepcifically for these tickets (but not limited to them)
2// THRIFT-2508 Uncompileable C# code due to language keywords in IDL
3// THRIFT-2557 error CS0542 member names cannot be the same as their enclosing type
4
5
6struct using {
7 1: double single
8 2: double integer
9}
10
11struct delegate {
12 1: string partial
13 2: delegate delegate
14}
15
16struct get {
17 1: bool sbyte
18}
19
20struct partial {
21 1: using using
22}
23
24
25
26struct ClassAndProp {
27 1: bool ClassAndProp
28 2: bool ClassAndProp_
29 3: bool ClassAndProp__
30 4: bool ClassAndProper
31}
32
33struct second_chance {
34 1: bool SECOND_CHANCE
35 2: bool SECOND_CHANCE_
36 3: bool SECOND_CHANCE__
37 4: bool SECOND_CHANCES
38}
39
40struct NOW_EAT_THIS {
41 1: bool now_eat_this
42 2: bool now_eat_this_
43 3: bool now_eat_this__
44 4: bool now_eat_this_and_this
45}
46
47struct TheEdgeCase {
48 1: bool theEdgeCase
49 2: bool theEdgeCase_
50 3: bool theEdgeCase__
51 4: bool TheEdgeCase
52 5: bool TheEdgeCase_
53 6: bool TheEdgeCase__
54}
55
56struct Tricky_ {
57 1: bool tricky
58 2: bool Tricky
59}
60
61struct Nested {
62 1: ClassAndProp ClassAndProp
63 2: second_chance second_chance
64 3: NOW_EAT_THIS NOW_EAT_THIS
65 4: TheEdgeCase TheEdgeCase
66 5: Tricky_ Tricky_
67 6: Nested Nested
68}
69
70exception Problem_ {
71 1: bool problem
72 2: bool Problem
73}
74
75
76service extern {
77 delegate event(1: partial get)
78 void Foo(1: Nested Foo_args) throws (1: Problem_ Foo_result)
79}
80
81// eof