blob: 5b1607f09f84b26c58e693697984cca0872c75b0 [file] [log] [blame]
// Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package dexsplitsample;
public class Class4 {
public static void main(String[] args) {
new Class4().createLambda();
System.out.println("Class4");
}
private void useLambda(LambdaInterface toInvokeOn) {
toInvokeOn.foo(42);
}
private void createLambda() {
useLambda((a) -> { return a + 2;});
}
interface LambdaInterface {
int foo(int a);
}
}