test/script/basic/funcconstructor.js.EXPECTED

Tue, 01 Sep 2015 18:28:11 +0530

author
sundar
date
Tue, 01 Sep 2015 18:28:11 +0530
changeset 1521
eed10d5bf2f4
parent 316
295c91f5fdde
child 952
6d5471a497fb
permissions
-rw-r--r--

8068901: Surprising behavior with more than one functional interface on a class
8068903: Can't invoke vararg @FunctionalInterface methods
Reviewed-by: attila, hannesw

jlaskey@3 1 anon func
jlaskey@3 2 225
jlaskey@3 3 function (x) {
jlaskey@3 4 print('anon func'); return x*x;
jlaskey@3 5 }
jlaskey@3 6 syntax error? true
sundar@316 7 SyntaxError: <function>:1:13 Missing close quote
jlaskey@3 8 print('hello)
jlaskey@3 9 ^
jlaskey@3 10 done

mercurial