Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 16007:23ae0cbcb2ae
OptionProcessor needs to find the type parameter of an OptionValue field declaration
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 03 Jun 2014 17:11:40 +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); }