tests/basic/return-analyze-if-3.sp
author Asher Baker <asherkin@gmail.com>
Mon Jun 10 15:52:44 2013 +0100 (2013-06-10)
changeset 265 3a903b89a514
parent 263 ba85a47ee414
permissions -rw-r--r--
Fixed type checking for multidimensional arrays.
     1 native PrintNum(num);
     2 
     3 f(x)
     4 {
     5     if (x)
     6         return 5;
     7     else
     8         return 6;
     9 }
    10 
    11 public main()
    12 {
    13     PrintNum(f(0));
    14     PrintNum(f(1));
    15 }
    16 
    17