Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl.test/tests/Null.sl @ 13821:b16ec83edc73
Documentation and more refactoring of Simple Language
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 29 Jan 2014 20:45:43 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13820:20e7727588e8 | 13821:b16ec83edc73 |
---|---|
1 /* The easiest way to generate null: a function without a return statement implicitly returns null. */ | |
2 function null() { | |
3 } | |
4 | |
5 function main() { | |
6 println(null()); | |
7 println(null() == null()); | |
8 println(null() != null()); | |
9 println(null() == 42); | |
10 println(null() != 42); | |
11 println(null() == "42"); | |
12 println(null() != "42"); | |
13 } |