mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
18 lines
309 B
C#
18 lines
309 B
C#
using System;
|
|
using System.IO;
|
|
|
|
class BadBase : IDisposable
|
|
{
|
|
private FileStream stream1 = new FileStream("a.txt", FileMode.Open);
|
|
|
|
public virtual void Dispose()
|
|
{
|
|
stream1.Dispose();
|
|
}
|
|
}
|
|
|
|
class Bad : BadBase
|
|
{
|
|
private FileStream stream2 = new FileStream("b.txt", FileMode.Open);
|
|
}
|