Bug 54991

Summary: Cannot compile get => _text
Product: [Mono] Compilers Reporter: Grief <iamgrief>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: maurizio.zucchi, mono-bugs+mono
Priority: ---    
Version: 4.8.0 (C9)   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:

Description Grief 2017-04-11 01:18:39 UTC
Compilation of getters and setters with expression-ed bodies fails even if LangVersion is set to 6.
-----------
public string SomeProperty
{
    get => _text;
    set => _text = value;
}
-----------
error CS1043: Invalid accessor body `=>', expecting `;' or `{'
error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Comment 1 Grief 2017-04-12 11:47:11 UTC
Can you please tell at least is it an expected behaviour, bug or 'feature'?
Comment 2 Marek Safar 2017-05-22 21:33:44 UTC
Fixed in master and 2017-04 mono