Skip to content

Commit 661be6f

Browse files
author
Gunpal Jain
committed
duplicate decleration
1 parent fac2538 commit 661be6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/CSharpToJsonSchema.IntegrationTests/WeatherStrictTools.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ public class Weather2
2323
public interface IWeatherStrictTools
2424
{
2525
[Description("Get the current weather in a given location")]
26-
public Weather2 GetCurrentWeather(
26+
public Weather2 GetCurrentWeather2(
2727
[Description("The city and state, e.g. San Francisco, CA")] string location,
2828
Unit2 unit);
2929

3030
[Description("Get the current weather in a given location")]
31-
public Task<Weather2> GetCurrentWeatherAsync(
31+
public Task<Weather2> GetCurrentWeatherAsync2(
3232
[Description("The city and state, e.g. San Francisco, CA")] string location,
3333
Unit2 unit,
3434
CancellationToken cancellationToken = default);
3535
}
3636

3737
public class WeatherStrictService : IWeatherStrictTools
3838
{
39-
public Weather2 GetCurrentWeather(string location, Unit2 unit)
39+
public Weather2 GetCurrentWeather2(string location, Unit2 unit)
4040
{
4141
return new Weather2
4242
{
@@ -47,7 +47,7 @@ public Weather2 GetCurrentWeather(string location, Unit2 unit)
4747
};
4848
}
4949

50-
public Task<Weather2> GetCurrentWeatherAsync(string location, Unit2 unit, CancellationToken cancellationToken = default)
50+
public Task<Weather2> GetCurrentWeatherAsync2(string location, Unit2 unit, CancellationToken cancellationToken = default)
5151
{
5252
return Task.FromResult(new Weather2
5353
{

0 commit comments

Comments
 (0)