{"id":19570566,"url":"https://github.com/ferrata/csharp-when-compiler-bug-repro","last_synced_at":"2026-06-15T19:30:58.385Z","repository":{"id":46672651,"uuid":"412183016","full_name":"ferrata/csharp-when-compiler-bug-repro","owner":"ferrata","description":"Reproduces a bug with `switch` / `when` statements","archived":false,"fork":false,"pushed_at":"2021-09-30T22:13:43.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-17T12:00:29.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ferrata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-30T18:40:34.000Z","updated_at":"2021-09-30T22:13:46.000Z","dependencies_parsed_at":"2022-09-15T10:50:20.526Z","dependency_job_id":null,"html_url":"https://github.com/ferrata/csharp-when-compiler-bug-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ferrata/csharp-when-compiler-bug-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Fcsharp-when-compiler-bug-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Fcsharp-when-compiler-bug-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Fcsharp-when-compiler-bug-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Fcsharp-when-compiler-bug-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferrata","download_url":"https://codeload.github.com/ferrata/csharp-when-compiler-bug-repro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Fcsharp-when-compiler-bug-repro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34377872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T06:15:36.848Z","updated_at":"2026-06-15T19:30:58.369Z","avatar_url":"https://github.com/ferrata.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csharp-when-compiler-bug-repro\nReproduces [the bug](https://github.com/dotnet/roslyn/issues/48493) with `switch` / `when` statements\n\n\nCompiler version:\n\n```txt\nMicrosoft (R) Visual C# Compiler version 3.11.0-4.21403.6 (ae1fff34)\nCopyright (C) Microsoft Corporation. All rights reserved.\n```\n\n\nCompiler error:\n\n```txt\nBuild FAILED.\n\n       \"C:\\work\\my\\when-compiler-bug\\when-compiler-bug\\when-compiler-bug.csproj\" (build target) (1) -\u003e\n       (CoreCompile target) -\u003e \n         C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\MSBuild\\Current\\Bin\\Roslyn\\Microsoft.CSharp.Core.targets(71,5):\n         error MSB6006: \"csc.exe\" exited with code -2146232797.\n```\n\nThe bug seems to be fixed in Roslyn `main` as of 09/28/2021:\n\n* [https://sharplab.io](https://sharplab.io/#v2:EYLgtghglgdgNAExAagD4AEAMACdBGAFgG4BYAKC1zwDoAZWAR1LPJgjAFMBnABwgGMO2AO4ALDjAD6/APZgeUADYcATpOABXAObkA3uWyHssAC6q2i4zDMqAZgKEBJAEIQuHR9dX3BBo/rIjbABfcj9DU3MIS3QAJmwABQgVCRMAYUU3LmwQbBc3Dy87B3DsAKCg9ABmbGAZGUtnesUElRkeVRMAT2wAXgA+bHtFd2ZSypq6huwAEQ0wMC60mRgEKBMoFYAKAEo+weHR0tCWQKNIlQtceIysgEEcxOTU264uUvKKw2rsei4TAA8MmAACsOPwTIM/iZWu1Oj0BtgYBxhL8oP8gaDwZDdswgidShcrnFsAAlDg8NoIDS+M6GT5fH7oAhkjQwLb5dyeGw+ITAArc7wOHbjfyir5cYTrfiibBbflcoq8kV0r5i1Vqir8ApPFLWV7ZXTYJoNWEdFTdXKHITBbD8cWaipiCR26hzBZLFZrDbbHYgB2OowAeiD2Go4YDgdqKQgAGs8VGgtr3NgDQ86gAPETiGC1GQZujomFtc3dah3GBdLaSfZDaLuP2RwMhsMRjWJozAGPxptanVJPXpTJvMrG5pm+FW+s2/3tjvYFvh6i9zVdjhxhOBk6a7dGAmqpnxfAAdg+DqZeAAbLgWQBZaDs/CYADaAF1sMktFwVZqGY7kai5KUjI1KCLs1CkmyWwAamw5cHcuw7JuFS7oYJzBEAA==)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferrata%2Fcsharp-when-compiler-bug-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferrata%2Fcsharp-when-compiler-bug-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferrata%2Fcsharp-when-compiler-bug-repro/lists"}