You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
768 B

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
interface LambdaTestI {
void abstractFun(int x);
}
class LambdaTest {
void call_lambda_FN(int x) {
/* Three methods are auto-generated here:
- LambdaTest.callsite_LambdaTest$Lambda$_2_0
- LambdaTest.access_LambdaTest$Lambda$_2_0
- LambdaTest$Lambda$_2_0.<init>
and one method is newly defined here:
- LambdaTest$Lambda$_2_0.abstractFun */
LambdaTestI fobj =
(int y) -> {
/* One method is auto-generated here:
- lambda$call_lambda$0 */
for (int i = 0; i < y; i++) {}
};
fobj.abstractFun(x);
}
}