New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bogus nominal type check error when creating a variable of typed with a subtype in Rakudo #1676
Comments
From @masak<masak> rakudo: subset A of Mu; my A $x Note the leaked '$original' variable name above, suggestion that it's |
From @jnthnOn Sat Apr 10 14:22:26 2010, masak wrote:
Now seems this works fine (think it was fixed a bit ago, and the ticket
Giving to moritz++ for spectests. Thanks, Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzIt works in mainline code, and in eval, but fails in eval_lives_ok. I have no idea if this is a problem with eval_lives_ok or with the |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-polymorphic_types/subset.t commit 9a1f88b25b604943dc10d6e6fa3f92ade1fcac12 [t/spec] test for RT #74234 Inline Patchdiff --git a/t/spec/S02-polymorphic_types/subset.t b/t/spec/S02-polymorphic_types/subset.t
index 872d703..b9d9e4b 100644
--- a/t/spec/S02-polymorphic_types/subset.t
+++ b/t/spec/S02-polymorphic_types/subset.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 32;
+plan 33;
=begin description
@@ -141,4 +141,11 @@ eval_dies_ok 'my Digit $x = 3.1',
ok 4 !~~ sY, 'and if nominal type check fails, it is False';
}
+# RT #74234
+{
+ #?rakudo todo 'RT 74234'
+ eval_lives_ok 'subset A of Mu; my A $x = 23;',
+ 'subset A of Mu + type check and assignment works';
+}
+
# vim: ft=perl6 |
From @cokeOn Sun May 30 08:25:28 2010, moritz wrote:
Looks like this test is being run and passing. Closing ticket. -- |
@coke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74234 (status was 'resolved')
Searchable as RT74234$
The text was updated successfully, but these errors were encountered: