XSharpPublic
XSharpPublic copied to clipboard
No warning about missing RETURN value in the VO dialect
In the following code, none of the RETURN commands cause a warning that the return type is missing. Additionally, the missing return value in the GET produces a bogus error XS0029: Cannot implicitly convert type 'logic' to 'int'
In the core dialect, there is a correct error reported for each of them, "error XS0126: An object of a type convertible to 'int' is required". I think it's fine for this to be just a warning in the VO dialect, since VO allows that, too.
I really hope I am not missing something very obvious again...
// VO dialect
CLASS TestClass
ACCESS TestAccess0 AS INT
RETURN
METHOD TestMethod() AS INT
RETURN
PROPERTY TestProperty AS INT
GET
RETURN // error XS0029: Cannot implicitly convert type 'logic' to 'int'
END GET
END PROPERTY
END CLASS