From a5efbb1b775afb2f6b29b37d39947c41744bb005 Mon Sep 17 00:00:00 2001 From: Ronan Date: Sat, 26 Apr 2025 21:04:01 +0200 Subject: Added getCanonicalGenericConstraints2 (sorts constraints and allows more generic expressions) (#6787) --- tools/slang-unit-test/unit-test-decl-tree-reflection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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); -- cgit v1.2.3