mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
20 lines
428 B
C#
20 lines
428 B
C#
/*
|
|
* A regression test for the CIL extractor - compiled into Methods.dll
|
|
* This tests the correct extraction of F<T>, and we should end up with
|
|
* 2 constructed methods of F<T>.
|
|
*/
|
|
|
|
// semmle-extractor-options: --cil
|
|
|
|
namespace Methods
|
|
{
|
|
public class Class1
|
|
{
|
|
public T F<T>(T t) { return new T[] { t }[0]; }
|
|
|
|
public T G<T>(T t) { return F(t); }
|
|
|
|
public T H<T>(T t) { return F(t); }
|
|
}
|
|
}
|