<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/autodiff/self-differential-type-equality-constraint.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>2025-09-23T15:12:09+00:00</updated>
<entry>
<title>fix a crash when using type equality constaint (#8515)</title>
<updated>2025-09-23T15:12:09+00:00</updated>
<author>
<name>kaizhangNV</name>
<email>149626564+kaizhangNV@users.noreply.github.com</email>
</author>
<published>2025-09-23T15:12:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=7740f7905fdebebdbe22011787d432b385f4cd9d'/>
<id>urn:sha1:7740f7905fdebebdbe22011787d432b385f4cd9d</id>
<content type='text'>
Close #8193.

When constructing `TransitiveTypeWitness` node, we should check if there
is operand that represents two equal times. Currently, we only check
whether the operand is `TypeEqualityWitness`, which is not good enough,
because a `DeclaredSubtypeWitness` could also be representing two same
types, in that case, we should also const fold this kind of witness.

Fails to do so, we could finally ends up with a generating a lookup
witness IR on a generic parameter that is not supposed to be looked up.</content>
</entry>
</feed>
