// Test local/sharing inference with ? operator and null operator. // Relevant PR: PR713 // Expected result: PASS class T7 { protected Object obj; void blah(boolean a) { obj = a ? null : new Object(); } void foo(int b) { Object x = (b == 0) ? null : obj; } public static void main(String[] args) { } }