Files
codeql/csharp/ql/test/library-tests/dataflow/global/This.cs
2019-05-20 13:42:32 +02:00

34 lines
482 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
class This
{
This() { }
protected void M(This other)
{
Use(this);
this.M(this);
M(this);
Use(other);
this.M(other);
M(other);
new This();
}
class Sub : This
{
Sub() { }
void M2()
{
this.M(this);
base.M(this);
new Sub();
}
}
static void Use<T>(T x) { }
}