1811 */ |
1811 */ |
1812 public boolean checkCompatibleAbstracts(DiagnosticPosition pos, |
1812 public boolean checkCompatibleAbstracts(DiagnosticPosition pos, |
1813 Type t1, |
1813 Type t1, |
1814 Type t2) { |
1814 Type t2) { |
1815 return checkCompatibleAbstracts(pos, t1, t2, |
1815 return checkCompatibleAbstracts(pos, t1, t2, |
1816 types.makeCompoundType(t1, t2)); |
1816 types.makeIntersectionType(t1, t2)); |
1817 } |
1817 } |
1818 |
1818 |
1819 public boolean checkCompatibleAbstracts(DiagnosticPosition pos, |
1819 public boolean checkCompatibleAbstracts(DiagnosticPosition pos, |
1820 Type t1, |
1820 Type t1, |
1821 Type t2, |
1821 Type t2, |