H00N24/ifj_tester

syna_test_3.code

Closed this issue · 1 comments

Môžem poprosiť o upresnenie prečo syna_test_3.code končí chybou?

class Main
{
    static int ahoj()
    {
        int a = 5;
        return a;
    }
    static void run()
    {
        int a = 5 + ahoj(); //syntax error

    }

}

@Zippersk
Vo vyraze nieje mozne volat staticku funkciu. V rozsireni FUNEXP to mozne je.