summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRonan <ro.cailleau@gmail.com>2025-04-26 21:04:01 +0200
committerGitHub <noreply@github.com>2025-04-26 12:04:01 -0700
commita5efbb1b775afb2f6b29b37d39947c41744bb005 (patch)
treeae5c1e11544d2411816ee6fcfb29b2820d41fcb0 /tools
parentd84aeeffdba388aec7a781c35973bf404d37fe80 (diff)
Added getCanonicalGenericConstraints2 (sorts constraints and allows more generic expressions) (#6787)
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-unit-test/unit-test-decl-tree-reflection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp b/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp
index 0d6a333f0..2fa1ac130 100644
--- a/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp
+++ b/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp
@@ -209,10 +209,10 @@ SLANG_UNIT_TEST(declTreeReflection)
SLANG_CHECK(typeParamTConstraintCount == 2);
auto typeParamTConstraintType1 =
genericReflection->getTypeParameterConstraintType(typeParamT, 0);
- SLANG_CHECK(getTypeFullName(typeParamTConstraintType1) == "IArithmetic");
+ SLANG_CHECK(getTypeFullName(typeParamTConstraintType1) == "IFloat");
auto typeParamTConstraintType2 =
genericReflection->getTypeParameterConstraintType(typeParamT, 1);
- SLANG_CHECK(getTypeFullName(typeParamTConstraintType2) == "IFloat");
+ SLANG_CHECK(getTypeFullName(typeParamTConstraintType2) == "IArithmetic");
auto innerStruct = genericReflection->getInnerDecl();
SLANG_CHECK(innerStruct->getKind() == slang::DeclReflection::Kind::Struct);