Fix default valeu for reference types and non-reference types (#34)

* .

* ok

* sw

* .

* .
This commit is contained in:
Stef Heyenrath
2022-05-08 18:19:10 +02:00
committed by GitHub
parent b4c490aef9
commit 87b2b6c6c3
5 changed files with 67 additions and 15 deletions
@@ -28,6 +28,26 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
{
return $"Hello {name} !";
}
public string HelloWorld2(string? name = "x")
{
return $"Hello {name} !";
}
public string HelloWorld3(char? ch = 'c')
{
return $"Hello {ch} !";
}
public string HelloWorld4(char ch)
{
return $"Hello {ch} !";
}
public string HelloWorld5(char? ch)
{
return $"Hello {ch} !";
}
public void WithParams(params string[] values)
{
@@ -70,7 +90,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
return Task.FromResult((string?)"");
}
public void CreateInvokeHttpClient(int i = 5, string? appId = null, CancellationToken token = default)
public void CreateInvokeHttpClient(int i = 5, string? appId = null, IReadOnlyDictionary<string, string> metadata = null, CancellationToken token = default)
{
}
}