mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Remove local from variable in test.
This commit is contained in:
parent
e015dace71
commit
0a2050769c
|
@ -863,7 +863,7 @@ TEST_CASE("regressions/one", "issue number 48") {
|
|||
|
||||
sol::state lua;
|
||||
lua.new_userdata<vars>("vars", "boop", &vars::boop);
|
||||
REQUIRE_NOTHROW(lua.script("local beep = vars.new()\n"
|
||||
REQUIRE_NOTHROW(lua.script("beep = vars.new()\n"
|
||||
"beep.boop = 1"));
|
||||
// test for segfault
|
||||
auto my_var = lua.get<vars>("beep");
|
||||
|
|
Loading…
Reference in New Issue
Block a user