This is an automatically generated mail to inform you that tests are now available in t/spec/S12-construction/BUILD.t
commit 019a2b38ac7a6ba8bb99d06e6b0843d3aa3eff0d Author: moritz <mor...@c213334d-75ef-0310-aa23-eaa082d1ae64> Date: Tue Oct 20 21:06:48 2009 +0000 [t/spec] test for RT #66120, a method BUILD should warn git-svn-id: http://svn.pugscode.org/p...@28862 c213334d-75ef-0310-aa23-eaa082d1ae64 diff --git a/t/spec/S12-construction/BUILD.t b/t/spec/S12-construction/BUILD.t index 783f223..4f53852 100644 --- a/t/spec/S12-construction/BUILD.t +++ b/t/spec/S12-construction/BUILD.t @@ -1,7 +1,7 @@ use v6; use Test; -plan 7; +plan 8; # L<S12/Construction and Initialization/The default BUILD and BUILDALL> @@ -97,4 +97,13 @@ TestCompiler.new; is $counter, 1, "testing BUILD in compiler subclass"; } +{ + BEGIN { @*INC.push: 't/spec/packages' } + use Test::Util; + is_run + 'class Foo { method BUILD() { ... } }', + { out => '', err => /BUILD/ & /submethod/ }, + 'method BUILD produces a compile-time warning'; +} + # vim: ft=perl6