dotnet/roslyn

Abstract properties are printed twice in C# Interactive

Open

#18,032 opened on Mar 21, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-InteractiveInteractive-ScriptingLogichelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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 }

Contributor guide