Issue with error CS0114 and CS0109 #63821
Labels
Area-Compilers
Bug
Resolution-Not Applicable
The issue is not relevant to code in this repo and is not an external issue.
Milestone
Hi, I am from SqlClient team and noticed an odd behavior.
In SqlTransaction we have two functions for Rollback and one function for Save.
One of the Rollback functions is overriding the base class DbTransaction and has no arguments provided. The other one shares the same name(Rollback) but takes an argument of string type.
The Save method is taking an argument of string type therefore is not overriding any class from its parent.
When we try to build the driver we get an error message saying CS0114. I followed the suggestion, although it is not hiding any method, and tried to rebuild the driver and got error CS0109. It seems like a loop. When I suppressed the errors in editorconfig file I was able to build the driver.
Net6.0.400
Steps to Reproduce:
Expected Behavior:
Since the driver does not hide any method we should not get that error when building with msbuild
Actual Behavior:
Error CS0114 and CS0109 are thrown in alternately.
The text was updated successfully, but these errors were encountered: