mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
fix to switch intersection types order in casts when one of the last types is not an interface
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.io.Serializable;
|
||||
|
||||
public class FooBar1 {
|
||||
{
|
||||
Object x = null;
|
||||
Object y = (CharSequence & Serializable) x;
|
||||
Object y2 = (CharSequence & Integer) x;
|
||||
Object y3 = (Integer & CharSequence) x;
|
||||
<error descr="Incompatible types. Found: 'java.lang.CharSequence & java.io.Serializable', required: 'int'">int y1 = (CharSequence & Serializable) x;</error>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user