Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/Null.sl @ 21271:1516d26e8f2b
Truffle/Source: add a new kind of Source (both indexed and non-indexed flavors) whose contents are unavailable at creation, but will be provided incrementally.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Thu, 07 May 2015 20:14:23 -0700 |
parents | b16ec83edc73 |
children |
line wrap: on
line source
/* The easiest way to generate null: a function without a return statement implicitly returns null. */ function null() { } function main() { println(null()); println(null() == null()); println(null() != null()); println(null() == 42); println(null() != 42); println(null() == "42"); println(null() != "42"); }