# New Ticket Created by mt1957 # Please include the string: [perl #130050] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130050 >
Hi, in rakudo 2016.10-249-gb84158c built on MoarVM version 2016.10-37-gf769569 implementing Perl 6.c, I've seen the following problem. When a use statement was placed as the first one, the class was not recognized and I got the following error(in this case MongoDB::Client which is loaded with 'use MongoDB::Client'): ===SORRY!=== Error while compiling /home/marcel/Languages/Perl6/Projects/mongo-perl6-driver/t/Test-support.pm6 (Test-support) Type 'MongoDB::Client' is not declared at /home/marcel/Languages/Perl6/Projects/mongo-perl6-driver/t/Test-support.pm6 (Test-support):119 ------> n ( Int :$server = 1 --> MongoDB::Clientâ ) { When I move the statement one line below another use statement the error still comes back. Only when the line is below all other use statements the error disappears as if the other use statements cancels out the the MongoDB::Client definition. This is a situation which I've not seen anywhere else and I do not know if there is something wrong in the code or not, Maybe it has something to do with the recent changes in lexical module loading. Anyways, the statement is placed somewhere else and the project can continue. Regards, Marcel