branch: externals/csharp-mode commit 309e2c8c57401e8fc2037c91f14729e4add1bdce Author: Jostein Kjønigsen <jost...@kjonigsen.net> Commit: Jostein Kjønigsen <jost...@kjonigsen.net>
Create failing test-case. --- test-files/indentation-tests.cs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/test-files/indentation-tests.cs b/test-files/indentation-tests.cs index 96b17c3..c0c4d8f 100644 --- a/test-files/indentation-tests.cs +++ b/test-files/indentation-tests.cs @@ -104,6 +104,36 @@ namespace Boo { "IsZero", (int i) => i == 0 } }; + var innerClassIntance = new TypeOuter.TypeInner + { + Boo = "Foo", + May = "Yay" + }; + + // yielding has different behaviour... for some reason! + // https://github.com/josteink/csharp-mode/issues/94 + yield return new InnerA { + PropA = 1, + PropB = 2 + }; + + yield return new InnerA.InnerB { + PropA = 1, + PropB = 2 + }; + + yield return new InnerA + { + Boo = "Foo", + May = "Yay" + }; + + yield return new InnerA.InnerB + { + Boo = "Foo", + May = "Yay" + }; + using (test) { System.Console.WriteLine("boo");