dotnet/roslyn

Abstract properties are printed twice in C# Interactive

Open

#18.032 aperta il 21 mar 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-InteractiveInteractive-ScriptingLogichelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

Version Used: VS2017 RTW

Steps to Reproduce:

Paste this code into C# Interactive window

abstract class B {
	public abstract int P { get; }
}
class C : B {
	public override int P => 0;
}
new C()

Expected Behavior:

Output equals:

Submission#0.C { P=0 }

Actual Behavior:

Submission#0.C { P=0, P=0 }

Guida contributor