extra test, forget where it came from
Matt S Trout [Sun, 1 Jun 2008 12:54:48 +0000 (12:54 +0000)]
t/combi.t [new file with mode: 0644]

diff --git a/t/combi.t b/t/combi.t
new file mode 100644 (file)
index 0000000..facda8f
--- /dev/null
+++ b/t/combi.t
@@ -0,0 +1,31 @@
+use strict;
+use warnings;
+use Test::More 'no_plan';
+
+sub method :lvalue {my $sv;}
+
+sub handle_method {
+  my ($usepack, $use, $inpack, $name, $proto) = @_;
+  my $H = sub (&) { };
+  if (defined $proto) {
+    return (sub :lvalue {my $sv;}, $H);
+  }
+  return ($H);
+}
+
+use Devel::Declare;
+use Devel::Declare method => [ DECLARE_NAME|DECLARE_PROTO, \&handle_method ];
+
+method blah {
+
+};
+
+method () {
+
+};
+
+method wahey () {
+
+};
+
+ok(1, "Survived compilation");