GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TUnit.Mocks: generated mock fails to compile when a generic method's type parameter name matches the interface's type parameter · Issue #7299 · thomhurst/TUnit Closed Labels bugSomething isn't working DescriptionDescriptionWhen a generic interface's type parameter has the same name as a type parameter on one of its (inherited) generic methods, the TUnit.Mocks source generator emits code that does not compile. Real-world trigger: Repro (TUnit.Mocks 1.76.45, net10.0)public interface IBus { T Invoke<T>(object message); } public interface IOutbox<T> : IBus { T Db { get; } } public class Tests { [Test] public void Repro() { var mock = Mock.Of<IOutbox<string>>(); mock.Db.Returns("x"); } } Errors (all in generated
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |