Skip to content

Commit 0c8eda4

Browse files
committed
Fix disabled globals test cases for new solver
New solver does not throw unknown symbol warnings in nonstrict mode
1 parent b6811a8 commit 0c8eda4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Definitions.test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ TEST_CASE("support_disabling_global_types")
5555
workspace.setupWithConfiguration(config);
5656

5757
auto document = newDocument(workspace, "foo.luau", R"(
58+
--!strict
5859
local x = string.split("", "")
5960
local y = table.insert({}, 1)
6061
)");
@@ -81,6 +82,7 @@ TEST_CASE("support_disabling_methods_in_global_types")
8182
workspace.setupWithConfiguration(config);
8283

8384
auto document = newDocument(workspace, "foo.luau", R"(
85+
--!strict
8486
local x = table.find({}, "value")
8587
local y = table.insert({}, 1)
8688
)");

0 commit comments

Comments
 (0)