# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #123789]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=123789 >
<TimToady> m: sub foo(int:U $x) { $x };
<camelia> rakudo-moar f53a94: ( no output )
<TimToady> m: sub foo(int:U $x) { $x }; foo(1)
<camelia> rakudo-moar f53a94: ( no output )
<jnthn> m: sub foo(int $x) { $x }; foo(Int)
<camelia> rakudo-moar f53a94: OUTPUT«(signal SEGV)»
* jnthn wonders what's to blame...
<jnthn> m: my int $x = Int;
<camelia> rakudo-moar f53a94: OUTPUT«Cannot unbox a type object in
block <unit> at /tmp/ILlhXl0Hz5:1»
<jnthn> TimToady: Fixed the SEGV; thanks.
<jnthn> Though should really give it a spectest, except it's fixed in
a branch, so... :)
* jnthn pokes masakbot to submit an RT :P
* masakbot submits an RT
<masak> m: class A { method foo(int $x) { $x } }; A.new.foo(Int)
<camelia> rakudo-moar f53a94: OUTPUT«(signal SEGV)»
<masak> m: sub foo(int $x) { say "haha!" }; foo(Int)
<camelia> rakudo-moar f53a94: OUTPUT«(signal SEGV)»
<masak> m: my int $x = Int; say "alive"
<camelia> rakudo-moar f53a94: OUTPUT«Cannot unbox a type object in
block <unit> at /tmp/NEZ6_sYpTa:1»
<jnthn> masak: That's what it reports locally now I've fixed it.
<jnthn> (Instead of the SEGVs)