summaryrefslogtreecommitdiffstats
path: root/tests/autodiff
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-07-22 08:47:50 -0700
committerGitHub <noreply@github.com>2025-07-22 15:47:50 +0000
commit52a45890b5ab71d7dbfdd01955afce129728d67e (patch)
tree141491e9c36cfa6a1a890765682d69ac4bfd2270 /tests/autodiff
parent0d26dbaad90f5eac604e148971d14e552bf9d5b8 (diff)
Fix crash when private ctor is used for coercion. (#7858)
* Fix crash when private ctor is used for coercion. * Fix tests. * Fix. * Fix test error.
Diffstat (limited to 'tests/autodiff')
-rw-r--r--tests/autodiff/diff-assoctype-generic-interface.slang1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/autodiff/diff-assoctype-generic-interface.slang b/tests/autodiff/diff-assoctype-generic-interface.slang
index 79e0eff08..6640e1d94 100644
--- a/tests/autodiff/diff-assoctype-generic-interface.slang
+++ b/tests/autodiff/diff-assoctype-generic-interface.slang
@@ -15,6 +15,7 @@ struct GetterImpl : IGetter
{
float[8] data;
+ [Differentiable]
__init(float[8] data)
{ this.data = data; }