mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 01:37:59 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
46
IDE/Tests/Test1/src/HotSwap_Interfaces2.bf
Normal file
46
IDE/Tests/Test1/src/HotSwap_Interfaces2.bf
Normal file
|
@ -0,0 +1,46 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
namespace IDETest
|
||||
{
|
||||
class HotSwap_Interfaces2
|
||||
{
|
||||
interface IFaceA
|
||||
{
|
||||
int Method0();
|
||||
/*IFaceA_Method1
|
||||
int Method1();
|
||||
*/
|
||||
}
|
||||
|
||||
class ClassA : IFaceA
|
||||
{
|
||||
public int Method0()
|
||||
{
|
||||
return 11;
|
||||
}
|
||||
|
||||
/*ClassA_Method1
|
||||
public int Method1()
|
||||
{
|
||||
return 22;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
static void Test1(IFaceA ia)
|
||||
{
|
||||
/*Test1_Method1
|
||||
int v1 = ia.Method1();
|
||||
*/
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
ClassA ca = scope .();
|
||||
IFaceA ia = ca;
|
||||
//Test_Start
|
||||
int v0 = ia.Method0();
|
||||
Test1(ia);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue