blob: 4904394791f735d6d1ece6761e1d695d987d4a89 [file] [log] [blame]
import org.checkerframework.framework.testchecker.util.*;
public class ThisType {
void t1(@Encrypted ThisType this) {
@Encrypted ThisType l1 = this;
ThisType l2 = this;
// Type of l2 is refined by flow -> legal
l1 = l2;
}
void t2(ThisType this) {
ThisType l1 = this;
// :: error: (assignment)
@Encrypted ThisType l2 = this;
}
}