Skip to content

Commit d85485c

Browse files
fix test to use InstantiateTemplate instead of BestOverloadFunctionMatch
1 parent 8f90c79 commit d85485c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unittests/CppInterOp/FunctionReflectionTest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2219,8 +2219,10 @@ TEST(FunctionReflectionTest, FailingTest1) {
22192219
Cpp::GetClassTemplatedMethods("is_equal", Cpp::GetGlobalScope(), fns);
22202220
EXPECT_EQ(fns.size(), 1);
22212221

2222-
Cpp::TCppScope_t fn = Cpp::BestOverloadFunctionMatch(fns, {}, {o1, o2});
2222+
Cpp::TemplateArgInfo args[2] = {{o1}, {o2}};
2223+
Cpp::TCppScope_t fn = Cpp::InstantiateTemplate(fns[0], args, 2);
22232224
EXPECT_TRUE(fn);
2225+
22242226
Cpp::JitCall jit_call = Cpp::MakeFunctionCallable(fn);
22252227
EXPECT_EQ(jit_call.getKind(), Cpp::JitCall::kUnknown); // expected to fail
22262228
EXPECT_FALSE(Cpp::Declare("int x = 1;"));

0 commit comments

Comments
 (0)