mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 01:18:02 +02:00
Fixed some comptime dependency rebuilding issues with aliases/extensions
This commit is contained in:
parent
1cd198cea9
commit
434a7406de
22 changed files with 394 additions and 86 deletions
34
IDE/Tests/BugW008/src/Program.bf
Normal file
34
IDE/Tests/BugW008/src/Program.bf
Normal file
|
@ -0,0 +1,34 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace Bug
|
||||
{
|
||||
class Zonk<T>
|
||||
{
|
||||
public int Call(float val)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
extension Zonk<T> where comptype(Gen.Get()) : String
|
||||
{
|
||||
public int Call(int val)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
class Program
|
||||
{
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
Zonk<int> zk = scope .();
|
||||
int val = zk.Call(1);
|
||||
//End
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue