mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
12 lines
349 B
Java
12 lines
349 B
Java
public class TernaryAssignments {
|
|
public static void main(String[] args) {
|
|
new TernaryAssignments().realMain(args);
|
|
}
|
|
public void realMain(String[] args) {
|
|
boolean t = true;
|
|
String v = v = v=v=v=v=v=v=v=v="s";
|
|
String s = t ? s="s" : "unset";
|
|
org.aspectj.testing.Tester.checkEqual(s, "s");
|
|
}
|
|
}
|