try icon indicating copy to clipboard operation
try copied to clipboard

"error CS1545: Property, indexer, or event is not supported by the language" on attempt to _read_ init-only property

Open alexyakunin opened this issue 5 years ago • 1 comments

Describe the bug

Attempting to access any init-only property produces "error CS1545: Property, indexer, or event is not supported by the language" in dotnet-try tool.

Did this error occur while using dotnet try or online?

  • [x] dotnet-try
  • [ ] online

What kind of error was it?

  • [ ] User Interface (UI): For example the output never displayed
  • [ ] Service Error: For example "The service is temporarily unavailable. We are working on it"
  • [ ] Other:

Screenshots

image

Please complete the following:

  • OS
    • [x] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [x] Chrome
    • [x] Edge
    • [ ] Safari

alexyakunin avatar Jan 22 '21 11:01 alexyakunin

The problem is severe: it prevents using dotnet-try w/ any NuGet packages involving this C# 9 feature.

alexyakunin avatar Jan 22 '21 11:01 alexyakunin