mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Parser.test.cpp: auto (int) -> size_t
This commit is contained in:
parent
ebd074803f
commit
4709fec28c
1 changed files with 1 additions and 1 deletions
|
@ -3735,7 +3735,7 @@ TEST_CASE_FIXTURE(Fixture, "complex_union_in_generic_ty")
|
||||||
CHECK_EQ(unionTy->types.size, 3);
|
CHECK_EQ(unionTy->types.size, 3);
|
||||||
// NOTE: These are `const char*` so we can compare them to `AstName`s later.
|
// NOTE: These are `const char*` so we can compare them to `AstName`s later.
|
||||||
std::vector<const char*> expectedTypes{"number", "boolean", "string"};
|
std::vector<const char*> expectedTypes{"number", "boolean", "string"};
|
||||||
for (auto i = 0; i < expectedTypes.size(); i++)
|
for (size_t i = 0; i < expectedTypes.size(); i++)
|
||||||
{
|
{
|
||||||
auto ty = unionTy->types.data[i]->as<AstTypeReference>();
|
auto ty = unionTy->types.data[i]->as<AstTypeReference>();
|
||||||
LUAU_ASSERT(ty);
|
LUAU_ASSERT(ty);
|
||||||
|
|
Loading…
Add table
Reference in a new issue