Mercurial > hg > graal-compiler
view graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 21480:c2b006c5e15f
Testing the annotation processor using the @ExpectedError annotation as suggested by Christian Humer
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Mon, 25 May 2015 10:36:30 +0200 |
parents | ff3136ecb5a7 |
children |
line wrap: on
line source
function add(a, b) { return a + b; } function sub(a, b) { return a - b; } function foo(f) { println(f(40, 2)); } function main() { foo(add); foo(sub); }