<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/bugs/infer-var-type-constant-folding.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-05-14T20:15:48+00:00</updated>
<entry>
<title>Infer type while constant folding causes failure (#7090)</title>
<updated>2025-05-14T20:15:48+00:00</updated>
<author>
<name>ArielG-NV</name>
<email>159081215+ArielG-NV@users.noreply.github.com</email>
</author>
<published>2025-05-14T20:15:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=d179f0eec263d6ba2d7c1594564d4161750b2369'/>
<id>urn:sha1:d179f0eec263d6ba2d7c1594564d4161750b2369</id>
<content type='text'>
Problem:
* Infering type with `let` while using constant-foldable object's means we run in a circular loop of `ensureDecl`.

Changes:
* If we constant-fold we effectively are ready to check definition. If we are not a constant to fold, we run `setCheckState` after anyways.</content>
</entry>
</feed>
