nikhilk/scriptsharp — Issue #134: Base partial class members are not initialized correctly in derived class
Author: vitia
Created: 2011-12-16 23:01:40+00:00
State: open

B2a [base.dll]
public partial class B2Partial
{
public void Bm2a()
{
Script.Alert("Bm2a");
}
}

B2b [base.dll]
public class B2NonPartial : B2Partial
{
}
partial class B2Partial
{
public void Bm2b()
{
Script.Alert("Bm2b");
}
}

D2.cs [derived.dll]:
//Fix: derive from non partial class instead of partial
//public class D2 : B2NonPartial
public class D2 : B2Partial
{
public void Dm2()
{
Script.Alert("Dm2");
Bm2a();
Bm2b();
}
}