[Lombok] Convert tests with compilation errors to diagnostic tests
This commit is contained in:
committed by
teamcity
parent
fb57e1ecd5
commit
430ea414a9
@@ -0,0 +1,28 @@
|
||||
// FIR_IDENTICAL
|
||||
// KT-46529
|
||||
|
||||
// FILE: PrefixJava.java
|
||||
|
||||
import lombok.*;
|
||||
import lombok.experimental.*;
|
||||
|
||||
@Getter @Setter @Accessors(chain = false, fluent = true, prefix = {"pxo"})
|
||||
public class PrefixJava {
|
||||
private String pxaPropA = "A";
|
||||
@Accessors(chain = true) private String pxoPropC = "C";
|
||||
@Accessors private String pxaPropD = "D";
|
||||
}
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun test() {
|
||||
//not generated because doesn't have prefix from class level @Accessors
|
||||
assertEquals(PrefixJava().<!UNRESOLVED_REFERENCE!>propA<!>, "A")
|
||||
//not generated because doesn't have prefix from config
|
||||
assertEquals(PrefixJava().<!UNRESOLVED_REFERENCE!>propC<!>, "C")
|
||||
assertEquals(PrefixJava().propD, "D")
|
||||
}
|
||||
|
||||
// FILE: lombok.config
|
||||
lombok.accessors.prefix += pxa
|
||||
Reference in New Issue
Block a user