Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential bug in .NET SDK 6.0.400-preview.22351.4 compiler #62354

Closed
AraHaan opened this issue Jul 3, 2022 · 2 comments
Closed

Potential bug in .NET SDK 6.0.400-preview.22351.4 compiler #62354

AraHaan opened this issue Jul 3, 2022 · 2 comments
Labels
Area-Compilers Resolution-By Design The behavior reported in the issue matches the current design

Comments

@AraHaan
Copy link
Member

AraHaan commented Jul 3, 2022

Version Used: Locally: 6.0.400-preview.22301.10, On Github Actions: 6.0.400-preview.22351.4

Steps to Reproduce:

This small codebase should be enough to reproduce it: https://github.com/AraHaan/remora-extensions.

(I would try sharplab but I fear it might not be as up to date with the version of the compiler that the CI automatically installs using the .NET Install scripts)

Expected Behavior:
For https://github.com/AraHaan/remora-extensions/blob/main/AraHaan.Remora.Extensions/Hosting/Host.cs#L34 to compile just fine in CI just like it does locally on my computer.

Actual Behavior:
Compiler error triggers on this line in CI, however locally it compiles just fine: https://github.com/AraHaan/remora-extensions/blob/main/AraHaan.Remora.Extensions/Hosting/Host.cs#L34
The interface used in that code: https://github.com/AraHaan/remora-extensions/blob/main/AraHaan.Remora.Extensions/Hosting/IBotServiceConfigurator.cs

More Details:

/home/runner/work/remora-extensions/remora-extensions/AraHaan.Remora.Extensions/Hosting/Host.cs(34,28): error CS8920: The interface 'IBotServiceConfigurator' cannot be used as type argument. Static member 'IBotServiceConfigurator.BeforeConfigure(Assembly)' does not have a most specific implementation in the interface. [/home/runner/work/remora-extensions/remora-extensions/AraHaan.Remora.Extensions/AraHaan.Remora.Extensions.csproj]
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 3, 2022
@Youssef1313
Copy link
Member

I think this was intentional. See dotnet/csharplang#5955.
It should be documented as a breaking change if it's not already.

@CyrusNajmabadi
Copy link
Member

Closing as by design.

@CyrusNajmabadi CyrusNajmabadi added Resolution-By Design The behavior reported in the issue matches the current design and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Resolution-By Design The behavior reported in the issue matches the current design
Projects
None yet
Development

No branches or pull requests

3 participants