Here is some perplexing behavior:

    say "Foo";
    hello there;

    sub hello () {
        say "Bar";
    }

    sub there () {
        say "Baz";
    }

This prints:

    Foo
    *** No compatible subroutine found: "&hello"
        at lazy.p6 line 2, column 1-12

I would expect it to print:

    Foo
    Baz
    *** No compatible subroutine found: "&hello"
        at lazy.p6 line 2, column 1-12

(If it didn't die at compile time, which would also be acceptable behavior)

What's up with that?

Reply via email to