mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
boxed types in prefix/postfix expressions: unbox in +/-bar only (IDEA-100120)
This commit is contained in:
@@ -454,6 +454,6 @@ public class TypesTest extends GenericsTestCase {
|
||||
assertEquals(PsiType.INT, plusBytePrefix.getType());
|
||||
final PsiStatement declaration = factory.createStatementFromText("Byte b = 1;", null);
|
||||
final PsiExpression plusPlusPostfix = factory.createExpressionFromText("b++", declaration);
|
||||
assertEquals(PsiType.BYTE, plusPlusPostfix.getType());
|
||||
assertEquals(PsiType.BYTE.getBoxedType(declaration), plusPlusPostfix.getType());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user