31 lines
555 B
Kotlin
Vendored
31 lines
555 B
Kotlin
Vendored
// FILE: ConstructorExample.java
|
|
|
|
import lombok.*;
|
|
|
|
@NoArgsConstructor
|
|
public class ConstructorExample {
|
|
|
|
public ConstructorExample(String arg) {
|
|
|
|
}
|
|
|
|
@Getter @Setter private int age = 10;
|
|
|
|
@Getter(AccessLevel.PROTECTED) private String name;
|
|
|
|
static void javaUsage() {
|
|
val existing = new ConstructorExample("existing");
|
|
val generated = new ConstructorExample();
|
|
}
|
|
}
|
|
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String {
|
|
val existing = ConstructorExample("existing")
|
|
val generated = ConstructorExample()
|
|
return "OK"
|
|
}
|
|
|