dotnet/roslyn

Abstract properties are printed twice in C# Interactive

Open

#18,032 创建于 2017年3月21日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C# (20,414 star) (4,257 fork)batch import
Area-InteractiveInteractive-ScriptingLogichelp wanted

描述

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 }

贡献者指南

Abstract properties are printed twice in C# Interactive · dotnet/roslyn#18032 | Good First Issue