summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-overload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
-rw-r--r--source/slang/slang-check-overload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp
index 367c200cc..d37c6e469 100644
--- a/source/slang/slang-check-overload.cpp
+++ b/source/slang/slang-check-overload.cpp
@@ -711,7 +711,7 @@ namespace Slang
{
if(context.mode != OverloadResolveContext::Mode::JustTrying)
{
- subTypeWitness = isSubtype(sub, sup);
+ subTypeWitness = isSubtype(sub, sup, IsSubTypeOptions::None);
getSink()->diagnose(context.loc, Diagnostics::typeArgumentDoesNotConformToInterface, sub, sup);
}
return false;
@@ -1024,9 +1024,9 @@ namespace Slang
if (!leftType->equals(rightType))
{
- if (isSubtype(leftType, rightType))
+ if (isSubtype(leftType, rightType, IsSubTypeOptions::None))
return -1;
- if (isSubtype(rightType, leftType))
+ if (isSubtype(rightType, leftType, IsSubTypeOptions::None))
return 1;
}
}