# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #115868]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=115868 >


<diakopter> phenny: ask masak see VBBHREUVND in the backlog. bug?  has
Int method
<masak> r: class A { has Str method foo(--> Int) { return "hi" } }; say A.foo
<p6eval> rakudo bf472b: OUTPUT«Type check failed for return value;
expected 'Int' but got 'Str' [...]
<masak> r: class A { has Int method foo() { return "hi" } }; say A.foo
<p6eval> rakudo bf472b: OUTPUT«hi␤»
<masak> diakopter: yes, I think that's a bug.
<masak> let me check with spec.
<masak> looks like.
* masak submits rakudobug
<masak> r: my Int sub foo { return "hi" }; say foo
<p6eval> rakudo bf472b: OUTPUT«Type check failed for return value;
expected 'Int' but got 'Str' [...]

Reply via email to