File: IndirectObjectNotation.run

package info (click to toggle)
libperl-critic-community-perl 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 428 kB
  • sloc: perl: 1,100; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## name IndirectCalls
## failures 4
## cut

my $foo = new Foo;
my $foo = new Foo @args;
my $bar = new $foo;
my $bar = new $foo @args;

## name DirectCalls
## failures 0
## cut

my $foo = Foo->new;
my $foo = Foo->new(@args);
my $bar = $foo->new;
my $bar = $foo->new(@args);