Skip to content

Commit f9ece0a

Browse files
committed
C#: Add implements test for nested types
1 parent 4c1a9b2 commit f9ece0a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

csharp/ql/test/library-tests/overrides/overrides.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,23 @@ class A9 : A2
269269
public override int this[int x] { get { return x; } } // overrides A2.Item
270270
public override event EventHandler Event; // overrides A2.Event
271271
}
272+
273+
class Outer<T>
274+
{
275+
class Inner { }
276+
277+
interface I6
278+
{
279+
void M<T>(Outer<T>.Inner x);
280+
}
281+
282+
class A10
283+
{
284+
public void M<T>(Outer<T>.Inner x) { } // implements I6.M (via A11)
285+
}
286+
287+
class A11 : A10, I6 { }
288+
}
272289
}
273290

274291
// semmle-extractor-options: /r:System.Dynamic.Runtime.dll /r:System.Linq.Expressions.dll

0 commit comments

Comments
 (0)