luau/Analysis/src/Unifiable.cpp

25 lines
376 B
C++
Raw Normal View History

// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
#include "Luau/Unifiable.h"
namespace Luau
{
namespace Unifiable
{
2022-10-07 00:55:58 +01:00
static int nextIndex = 0;
2023-03-17 14:59:30 +00:00
int freshIndex()
{
return ++nextIndex;
}
2023-03-24 17:34:14 +00:00
Error::Error()
: index(++nextIndex)
{
}
int Error::nextIndex = 0;
} // namespace Unifiable
} // namespace Luau