{"action":"created","issue":{"url":"https://api.github.com/repos/Test-More/test-more/issues/729","repository_url":"https://api.github.com/repos/Test-More/test-more","labels_url":"https://api.github.com/repos/Test-More/test-more/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/Test-More/test-more/issues/729/comments","events_url":"https://api.github.com/repos/Test-More/test-more/issues/729/events","html_url":"https://github.com/Test-More/test-more/issues/729","id":183509910,"number":729,"title":"Compile time errors hidden with T2 + M::B + T2::Plugins::NoWarnings","user":{"login":"toddr","id":97892,"avatar_url":"https://avatars.githubusercontent.com/u/97892?v=3","gravatar_id":"","url":"https://api.github.com/users/toddr","html_url":"https://github.com/toddr","followers_url":"https://api.github.com/users/toddr/followers","following_url":"https://api.github.com/users/toddr/following{/other_user}","gists_url":"https://api.github.com/users/toddr/gists{/gist_id}","starred_url":"https://api.github.com/users/toddr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddr/subscriptions","organizations_url":"https://api.github.com/users/toddr/orgs","repos_url":"https://api.github.com/users/toddr/repos","events_url":"https://api.github.com/users/toddr/events{/privacy}","received_events_url":"https://api.github.com/users/toddr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-17T19:49:24Z","updated_at":"2016-10-24T04:07:35Z","closed_at":null,"body":"I have vastly simplified this to show the problem that came up today.\r\n\r\n``` perl\r\n#!perl\r\n\r\nuse strict;\r\nuse warnings;\r\n\r\npackage foo;\r\nuse Test::Builder;\r\n\r\npackage main;\r\n\r\nuse Test2::Bundle::Extended;\r\nuse Test2::Plugin::NoWarnings;\r\n\r\nsplice(@$array_var, 3 1);\r\nmy $array_var = [qw/a b c/];\r\nok(1, \"abc\");\r\n\r\ndone_testing();\r\nexit;\r\n\r\n```\r\n\r\nIf you run this program, you get:\r\n``` \r\nrelease() should not be called on context that is neither canon nor a child at /usr/local/lib/Test2/API.pm line 179.\r\n```\r\n\r\nWhat's weird is if you comment off T::B or T2::NoWarnings, you get:\r\n```\r\n$>perl -cw t/test.t\r\nNumber found where operator expected at t/test.t line 14, near \"3 1\"\r\n\t(Missing operator before  1?)\r\nGlobal symbol \"$array_var\" requires explicit package name (did you forget to declare \"my $array_var\"?) at t/test.t line 14.\r\nsyntax error at t/test.t line 14, near \"3 1\"\r\nt/test.t had compilation errors.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Test-More/test-more/issues/comments/255644068","html_url":"https://github.com/Test-More/test-more/issues/729#issuecomment-255644068","issue_url":"https://api.github.com/repos/Test-More/test-more/issues/729","id":255644068,"user":{"login":"exodist","id":73914,"avatar_url":"https://avatars.githubusercontent.com/u/73914?v=3","gravatar_id":"","url":"https://api.github.com/users/exodist","html_url":"https://github.com/exodist","followers_url":"https://api.github.com/users/exodist/followers","following_url":"https://api.github.com/users/exodist/following{/other_user}","gists_url":"https://api.github.com/users/exodist/gists{/gist_id}","starred_url":"https://api.github.com/users/exodist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodist/subscriptions","organizations_url":"https://api.github.com/users/exodist/orgs","repos_url":"https://api.github.com/users/exodist/repos","events_url":"https://api.github.com/users/exodist/events{/privacy}","received_events_url":"https://api.github.com/users/exodist/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T04:07:35Z","updated_at":"2016-10-24T04:07:35Z","body":"I can confirm this fix also fixes the example provided by @toddr at the top... though I am not sure why. And yes I am using the old un-patched version of Test2::Plugin::NoWarnings."}}
{"actor":{"display_login":"exodist"}}