Files
kotlin-fork/plugins/lombok/lombok-compiler-plugin/testData/compile/with.kt
T
2021-04-25 18:18:06 +03:00

34 lines
558 B
Kotlin
Vendored

//FILE: WithExample.java
import lombok.AccessLevel;
import lombok.With;
public class WithExample {
//todo replace constructors with annotations when supported
public WithExample() {
}
public WithExample(int age, String name) {
}
@With private int age = 10;
@With private String name;
static void test() {
WithExample obj = new WithExample().withAge(16).withName("fooo");
}
}
//FILE: test.kt
class Test {
fun run() {
val obj: WithExample = WithExample().withAge(16).withName("fooo")
}
}