Raku / old-issue-tracker

Tickets from RT
https://github.com/Raku/old-issue-tracker/issues
2 stars 1 forks source link

cannot create junction from types #2623

Closed p6rt closed 12 years ago

p6rt commented 12 years ago

Migrated from rt.perl.org#109188 (status was 'resolved')

Searchable as RT109188$

p6rt commented 12 years ago

From @bbkr

Steps to reproduce bug​:

[13​:16] \ rakudo​: Array|Hash [13​:16] \ rakudo 052cc6​: OUTPUT«Cannot look up attributes in a type object␤ in method infinite at src/gen/CORE.setting​:4749␤ in method infinite at src/gen/CORE.setting​:4432␤ in method infinite at src/gen/CORE.setting​:4749␤ in method infinite at src/gen/CORE.setting​:4432␤
in method gimme at s…

Version​:

This is perl6 version 2012.01 built on parrot 3.11.0 revision RELEASE_3_11_0

Discussion​:

[13​:14] \ rakudo​: one(Array,Hash) # should junction work on types? I cannot find in spec. [13​:14] \ rakudo 052cc6​: OUTPUT«Cannot look up attributes in a type object␤ in method infinite at src/gen/CORE.setting​:4749␤ in method infinite at src/gen/CORE.setting​:4432␤ in method infinite at src/gen/CORE.setting​:4749␤ in method infinite at src/gen/CORE.setting​:4432␤
in method gimme at s…

[13​:15] \ consequence of syntax "$x ~~ Array" should be possibility to use "$x ~~ Array|Hash" [13​:16] \ bbkr​: I think it should work [13​:16] \ Should work. [13​:16] * bbkr reports bug

p6rt commented 12 years ago

From @moritz

This has been fixed, and is now tested in S03-junctions/misc.t

p6rt commented 12 years ago

@moritz - Status changed from 'new' to 'resolved'