Project

General

Profile

Bug #521

IF without ELSE in end of function

Added by iri over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
VM
Target version:
-
Start date:
05/09/2015
Due date:
% Done:

0%

Estimated time:

Description

Recently, the ELSE block became optional.
However, only in the end of a function, no ELSE block can occur a fatal error during the type checking :

TC > else expected
syntax error

Example :

fun anyFunction (arg)=
  if arg then
    // do something ;;

While waiting, add a statment, like '0' or something else.

fun anyFunction (arg)=
  if arg then
    // do something ;
  0;;

Also available in: Atom PDF