fixes for director class naming when nested classes are used
This commit is contained in:
parent
504c2030bb
commit
e18044185e
7 changed files with 67 additions and 47 deletions
20
Examples/test-suite/csharp/nested_directors_runme.cs
Normal file
20
Examples/test-suite/csharp/nested_directors_runme.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using nested_directorsNamespace;
|
||||
#pragma warning disable 219
|
||||
|
||||
public class CNested : Base.Nest {
|
||||
public override bool GetValue() {return true;}
|
||||
}
|
||||
public class CSub : Sub {
|
||||
protected override bool GetValue() { return base.GetValue(); }
|
||||
public bool Test(){ return GetValue(); }
|
||||
}
|
||||
|
||||
public class runme {
|
||||
static void Main() {
|
||||
CNested n = new CNested();
|
||||
CSub s = new CSub();
|
||||
if (!s.Test())
|
||||
throw new Exception("Sub.GetValue");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue