From 92adca20bff57cdc2f95ab2f115f5f9a21661f39 Mon Sep 17 00:00:00 2001 From: Kampfkarren Date: Wed, 27 Jul 2022 18:50:39 -0700 Subject: [PATCH] Test constant type interp strings --- tests/TypeInfer.test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/TypeInfer.test.cpp b/tests/TypeInfer.test.cpp index 0e169c81..b92818ed 100644 --- a/tests/TypeInfer.test.cpp +++ b/tests/TypeInfer.test.cpp @@ -838,6 +838,17 @@ TEST_CASE_FIXTURE(Fixture, "tc_interpolated_string_with_invalid_expression") LUAU_REQUIRE_ERROR_COUNT(1, result); } +TEST_CASE_FIXTURE(Fixture, "tc_interpolated_string_constant_type") +{ + ScopedFastFlag sff{"LuauInterpolatedStringBaseSupport", true}; + + CheckResult result = check(R"( + local foo: "hello" = `hello` + )"); + + LUAU_REQUIRE_NO_ERRORS(result); +} + /* * If it wasn't instantly obvious, we have the fuzzer to thank for this gem of a test. *