using System;
using System.IO;
namespace DisFixerTest.Factory {
public class ClassThatStoredObjectCreationLocally2 {
public IDisposable Create() {
var inst = new MemoryStreamFactory().Create(); //this should yield a diagnostic
return null;
}
internal class MemoryStreamFactory {
public IDisposable Create() {
return new MemoryStream();
}
}
}
}