mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +02:00
More fail tests
This commit is contained in:
parent
47e0cff3a0
commit
307c1080c4
2 changed files with 22 additions and 0 deletions
17
IDE/Tests/CompileFail001/src/Generics.bf
Normal file
17
IDE/Tests/CompileFail001/src/Generics.bf
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
|
||||
namespace IDETest
|
||||
{
|
||||
class Generics
|
||||
{
|
||||
public void Method1<T>(T val) where T : Array
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Method2<T, T2>(T val, T2 val2)
|
||||
{
|
||||
Method1(val2); //FAIL 'T', declared to be 'T2'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue