# New Ticket Created by Elizabeth Mattijsen
# Please include the string: [perl #126506]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=126506 >
22:30:53] <lizmat> m: class A { has $.a; method gist(A:D:) { $!a } };
A.gist # invocant smiley is ignored if not a multi :-(
[22:30:54] <+camelia> rakudo-moar 4e45f0: OUTPUT«Invocant requires an
instance of type A, but a type object was passed. Did you forget a .new? in
method gist at /tmp/jBAZ4pw7DY:1 in block <unit> at /tmp/jBAZ4pw7DY:1»
[22:31:18] <lizmat> feels like it should at least warn about the useless
invocant signature
[22:59:37] <lizmat> m: class A { has $.a; method gist(Int:D:) { $!a } };
A.gist # invocant smiley is ignored if not a multi :-(
[22:59:38] <+camelia> rakudo-moar 2e19eb: OUTPUT«Type check failed in binding
<anon>; expected Int but got A in method gist at /tmp/AfZO2yeTj7:1 in block
<unit> at /tmp/AfZO2yeTj7:1»
[23:00:33] <lizmat> that should probably be a compile time error
[23:00:46] <lizmat> m: class A { has $.a; method gist(Int:) { $!a } };
A.gist
[23:00:46] <+camelia> rakudo-moar 2e19eb: OUTPUT«Type check failed in binding
<anon>; expected Int but got A in method gist at /tmp/ufwv1H5sTm:1 in block
<unit> at /tmp/ufwv1H5sTm:1»