The SED syntax parser is simple and not comparable to the compiler parser. Functions definitions are detected by their return types, which must be known, thus the problem that you noticed. There are other limitations too.

However, I've made a notice for developing a better parser for a future version.