salmanahmad / silo

The Silo Programming Language
0 stars 0 forks source link

Test VOID Returns #34

Closed salmanahmad closed 10 years ago

salmanahmad commented 10 years ago

What happens if you have a native function that returns void. Will the compiler artificially insert a null for you?

Example:

public class foo extends Function {
    @Function.Body
    public static void invoke(ExecutionContext context) {
        System.out.println("Hi!")
    }
}
salmanahmad commented 10 years ago

No test was added but additional code was introduced in 1f551b2bf7efc1b5f4833dd4245d016ea6378fe8.

salmanahmad commented 10 years ago

Test cases added i 7dc35c4b5d5de6a9ba7ab83744d05cc7e8f0114d.