Menu

#995 fbc fails to detect statements in a namespace

open
nobody
None
compiler
2023-11-25
2023-11-25
No

Direct statements should not be allowed inside of a namespace block

namespace ns

    type t
        value as integer
        declare sub proc()
    end type

    sub t.proc()
    end sub

    dim shared s as t

    '' fbc should throw an error but does not
    s.proc

   '' error 122: illegal inside a namespace block in 's.value = 1' 
    s.value = 1

end namespace

Discussion


Log in to post a comment.

MongoDB Logo MongoDB