fixed %template declared within class, next to template declaration
added a few tests for C# nested classes support
This commit is contained in:
parent
0cf116128b
commit
865408874f
6 changed files with 172 additions and 1 deletions
23
Examples/test-suite/csharp/nested_workaround_runme.cs
Normal file
23
Examples/test-suite/csharp/nested_workaround_runme.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using nested_workaroundNamespace;
|
||||
#pragma warning disable 219
|
||||
|
||||
public class runme {
|
||||
static void Main() {
|
||||
{
|
||||
Inner inner = new Inner(5);
|
||||
Outer outer = new Outer();
|
||||
Inner newInner = outer.doubleInnerValue(inner);
|
||||
if (newInner.getValue() != 10)
|
||||
throw new Exception("inner failed");
|
||||
}
|
||||
|
||||
{
|
||||
Outer outer = new Outer();
|
||||
Inner inner = outer.createInner(3);
|
||||
Inner newInner = outer.doubleInnerValue(inner);
|
||||
if (outer.getInnerValue(newInner) != 6)
|
||||
throw new Exception("inner failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue