mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed mangling issue with method overrides in extensions
This commit is contained in:
parent
e2de5becab
commit
2e3880100b
3 changed files with 40 additions and 18 deletions
|
@ -94,6 +94,17 @@ namespace Tests
|
|||
}
|
||||
}
|
||||
|
||||
class ClassC
|
||||
{
|
||||
public extern void MethodA();
|
||||
public void MethodB() => MethodA();
|
||||
}
|
||||
|
||||
extension ClassC
|
||||
{
|
||||
public override void MethodA() { }
|
||||
}
|
||||
|
||||
class TClassA<T> where T : IDisposable
|
||||
{
|
||||
public int32 mA = 10;
|
||||
|
@ -167,6 +178,9 @@ namespace Tests
|
|||
ClassA ca = scope ClassA();
|
||||
ca.mA = 123;
|
||||
ca.mB = 234;
|
||||
|
||||
ClassC cc = scope .();
|
||||
cc.MethodB();
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue