Skip to content

Commit

Permalink
Perlito5 - java - Spark example - implement UnaryOperator, BinaryOper…
Browse files Browse the repository at this point in the history
…ator - fix
  • Loading branch information
fglock committed Nov 28, 2019
1 parent e9152aa commit 55ea75c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src5/lib/Perlito5/Java/Emitter.pm
Expand Up @@ -2274,8 +2274,8 @@ package Perlito5::AST::Sub;

my $closure_type = "PlClosure"; # aka "Runnable"
if (defined($self->{sig})) {
$closure_type = "PlUnaryClosure" if $self->{sig} eq "$"; # aka "UnaryOperator"
$closure_type = "PlBinaryClosure" if $self->{sig} eq "$$"; # aka "BinaryOperator"
$closure_type = "PlUnaryClosure" if $self->{sig} eq '$'; # aka "UnaryOperator"
$closure_type = "PlBinaryClosure" if $self->{sig} eq '$$'; # aka "BinaryOperator"
}

my @s = (
Expand Down

0 comments on commit 55ea75c

Please sign in to comment.