# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #131542]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131542 >


the `state $l` appears to break the moment we add an unrelated named param to 
it (doesn't happen with positionals):

<Zoffix> m: class Foo { multi method foo (Int) { self.foo }; multi method 
foo(:$foo) { state $l = 42; dd $l} }; Foo.new.foo: 42;
<camelia> rakudo-moar f0c3bf: OUTPUT: «Any $l = Any␤»
<Zoffix> m: class Foo { multi method foo (Int) { self.foo }; multi method foo() 
{ state $l = 42; dd $l} }; Foo.new.foo: 42;
<camelia> rakudo-moar f0c3bf: OUTPUT: «Int $l = 42␤»
<Zoffix> m: class Foo { multi method foo (Int) { self.foo: 'meow' }; multi 
method foo($foo) { state $l = 42; dd $l} }; Foo.new.foo: 42;
<camelia> rakudo-moar f0c3bf: OUTPUT: «Int $l = 42␤»

Reply via email to