Properly convert type to globals with namespace

This commit is contained in:
Adam Hathcock
2024-09-03 09:19:40 +01:00
parent 80c3145257
commit 657fb078a8
4 changed files with 21 additions and 56 deletions
@@ -169,7 +169,7 @@ internal class AccessorsTestsService : IAccessorsTestsService
}
public FtpStyleUriParser? SymbolBinder { get; set; }
public FtpStyleUriParser SymbolBinder2 { get; set; } = default!;
public IEnumerable<FtpStyleUriParser> SymbolBinder3 { get; set; }= default!;
public IEnumerable<FtpStyleUriParser> SymbolBinder3 { get; set; } = default!;
public string PublicProperty { get; set; } = string.Empty;
@@ -1,6 +1,7 @@
// ReSharper disable CheckNamespace
using System;
using System.Collections.Generic;
using System.Diagnostics.SymbolStore;
using Speckle.InterfaceGenerator;
@@ -17,7 +18,12 @@ public class SameNameClass : ISameNameClass { }
public class SameNameClass2 : ISameNameClass2
{
public ISameNameClass Return() => throw new InvalidOperationException();
public SymbolToken Return2() => throw new InvalidOperationException();
public T GetRequiredService<T>() where T : class => throw new InvalidOperationException();
public SymbolToken Return2() => throw new InvalidOperationException();
public T GetRequiredService<T>()
where T : class => throw new InvalidOperationException();
public void TestGenericParameter(List<SameNameClass> x) =>
throw new InvalidOperationException();
}