@@ -14,6 +14,7 @@ LUAU_FASTFLAG(LuauInstantiateInSubtyping)
1414LUAU_FASTFLAG(LuauRequireCyclesDontAlwaysReturnAny)
1515LUAU_FASTFLAG(LuauSolverV2)
1616LUAU_FASTFLAG(LuauTypestateBuiltins2)
17+ LUAU_FASTFLAG(LuauNewSolverPopulateTableLocations)
1718
1819using namespace Luau;
1920
@@ -466,10 +467,15 @@ local b: B.T = a
466467 LUAU_REQUIRE_ERROR_COUNT (1 , result);
467468
468469 if (FFlag::LuauSolverV2)
469- CHECK (
470- toString (result.errors .at (0 )) ==
471- " Type 'T' from 'game/A' could not be converted into 'T' from 'game/B'; at [read \" x\" ], number is not exactly string"
472- );
470+ {
471+ if (FFlag::LuauNewSolverPopulateTableLocations)
472+ CHECK (
473+ toString (result.errors .at (0 )) ==
474+ " Type 'T' from 'game/A' could not be converted into 'T' from 'game/B'; at [read \" x\" ], number is not exactly string"
475+ );
476+ else
477+ CHECK (toString (result.errors .at (0 )) == " Type 'T' could not be converted into 'T'; at [read \" x\" ], number is not exactly string" );
478+ }
473479 else
474480 {
475481 const std::string expected = R"( Type 'T' from 'game/A' could not be converted into 'T' from 'game/B'
@@ -510,10 +516,15 @@ local b: B.T = a
510516 LUAU_REQUIRE_ERROR_COUNT (1 , result);
511517
512518 if (FFlag::LuauSolverV2)
513- CHECK (
514- toString (result.errors .at (0 )) ==
515- " Type 'T' from 'game/B' could not be converted into 'T' from 'game/C'; at [read \" x\" ], number is not exactly string"
516- );
519+ {
520+ if (FFlag::LuauNewSolverPopulateTableLocations)
521+ CHECK (
522+ toString (result.errors .at (0 )) ==
523+ " Type 'T' from 'game/B' could not be converted into 'T' from 'game/C'; at [read \" x\" ], number is not exactly string"
524+ );
525+ else
526+ CHECK (toString (result.errors .at (0 )) == " Type 'T' could not be converted into 'T'; at [read \" x\" ], number is not exactly string" );
527+ }
517528 else
518529 {
519530 const std::string expected = R"( Type 'T' from 'game/B' could not be converted into 'T' from 'game/C'
0 commit comments