summaryrefslogtreecommitdiff
path: root/lib/AspectC
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-05-18 10:43:31 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-05-18 10:43:31 +0200
commit4f11a6625e5efe8e4289de3454e2c4acc9c91438 (patch)
treed2b1ba70dd20731eb0b8d68abc14a26035ba4537 /lib/AspectC
parent8b41795516bd3d54dedaf1eadc04731ad6c4febb (diff)
don't get confused by polymorphism
Diffstat (limited to 'lib/AspectC')
-rw-r--r--lib/AspectC/Repo.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AspectC/Repo.pm b/lib/AspectC/Repo.pm
index 35bffbe..2ddccfd 100644
--- a/lib/AspectC/Repo.pm
+++ b/lib/AspectC/Repo.pm
@@ -129,7 +129,8 @@ sub parse_xml {
split( qr{ \s+ }x, $attributes )
];
}
- $class->{function}{$name} = $fun;
+ my $hash_key = sprintf( '%s(%s)', $name, join( q{, }, @args ) );
+ $class->{function}{$hash_key} = $fun;
}
$self->{class}{$class_name} = $class;
}