From 4f11a6625e5efe8e4289de3454e2c4acc9c91438 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 May 2017 10:43:31 +0200 Subject: don't get confused by polymorphism --- lib/AspectC/Repo.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/AspectC') 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; } -- cgit v1.2.3