// FILE: ConstructorExample.java import lombok.*; @AllArgsConstructor @RequiredArgsConstructor public class ConstructorExample { @Getter @Setter private int age = 10; @Getter private final A name; private B otherField; static void javaUsage() { val generated = new ConstructorExample(12, 42L, true); val generatedReq = new ConstructorExample("234"); } } // FILE: test.kt fun box(): String { val generated = ConstructorExample(12, 42L, true) val generatedReq = ConstructorExample("234"); return "OK" }