Skip to content

Commit 04cdcd5

Browse files
fix test to use InstantiateTemplate instead of BestOverloadFunctionMatch
1 parent b58c5f1 commit 04cdcd5

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
@@ -2149,8 +2149,10 @@ TEST(FunctionReflectionTest, FailingTest1) {
21492149
Cpp::GetClassTemplatedMethods("is_equal", Cpp::GetGlobalScope(), fns);
21502150
EXPECT_EQ(fns.size(), 1);
21512151

2152-
Cpp::TCppScope_t fn = Cpp::BestOverloadFunctionMatch(fns, {}, {o1, o2});
2152+
Cpp::TemplateArgInfo args[2] = {{o1}, {o2}};
2153+
Cpp::TCppScope_t fn = Cpp::InstantiateTemplate(fns[0], args, 2);
21532154
EXPECT_TRUE(fn);
2155+
21542156
Cpp::JitCall jit_call = Cpp::MakeFunctionCallable(fn);
21552157
EXPECT_EQ(jit_call.getKind(), Cpp::JitCall::kUnknown); // expected to fail
21562158
EXPECT_FALSE(Cpp::Declare("int x = 1;"));

0 commit comments

Comments
 (0)