Jinseong Jeon | 2341e61 | 2019-05-28 22:45:10 -0700 | [diff] [blame] | 1 | // Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | package unused_arg_in_lambdas_jstyle; |
| 5 | |
| 6 | public class Lambdas { |
| 7 | |
| 8 | public interface MultiFunction<R, P1, P2, P3> { |
| 9 | R get(P1 a, P2 b, P3 c); |
| 10 | } |
| 11 | |
| 12 | public synchronized static <R, P1, P2, P3> |
| 13 | void acceptMultiFunction(MultiFunction<R, P1, P2, P3> s, P1 a, P2 b, P3 c) { |
| 14 | System.out.println(s.get(a, b, c)); |
| 15 | } |
| 16 | } |