<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/diagnostics/extension-unreferenced-generic-param.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-07-09T16:05:22+00:00</updated>
<entry>
<title>Fix internal error when a generic in an extension is unused (#7665)</title>
<updated>2025-07-09T16:05:22+00:00</updated>
<author>
<name>Copilot</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-07-09T16:05:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=e40ddc6efb275a753a46f8c8bcc420801668c931'/>
<id>urn:sha1:e40ddc6efb275a753a46f8c8bcc420801668c931</id>
<content type='text'>
* Initial plan

* Add diagnostic for unreferenced generic parameters in extensions

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Use GenericTypeParamDeclBase and eliminate intermediate list

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Update test to use filecheck format for better verification

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Update extension validation to use getMembersOfType for better constraint collection

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Add temporary workaround for inheritance constraints but issue persists

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Fix inheritance constraint validation by moving to SemanticsDeclConformancesVisitor

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Fix inheritance constraint validation by removing inheritance declaration checks

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Move extension generic parameter validation back to SemanticsDeclBasesVisitor

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Fix test.

* format code (#7671)

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;

* Fix and update.

* Refine fix.

---------

Co-authored-by: copilot-swe-agent[bot] &lt;198982749+Copilot@users.noreply.github.com&gt;
Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;
Co-authored-by: Yong He &lt;yonghe@outlook.com&gt;
Co-authored-by: slangbot &lt;ellieh+slangbot@nvidia.com&gt;
Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;</content>
</entry>
</feed>
