<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/diagnostics/switch-duplicate-case.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2024-04-03T22:10:16+00:00</updated>
<entry>
<title>Fix assertions due to malformed switch statements (#3858)</title>
<updated>2024-04-03T22:10:16+00:00</updated>
<author>
<name>sriramm-nv</name>
<email>85252063+sriramm-nv@users.noreply.github.com</email>
</author>
<published>2024-04-03T22:10:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=f6c49fdb2cc7ead1943d944097220cedd142792f'/>
<id>urn:sha1:f6c49fdb2cc7ead1943d944097220cedd142792f</id>
<content type='text'>
* Fix assertions due to malformed switch statements

Fixes the issue #2955

* Checks for multiple case statements with same values
* Checks for multiple default cases
* Constant-folds case exprs into an Integer value

* fix the comments, and updated error code

* one-line comment on diagnostic code</content>
</entry>
</feed>
