IDEA-63698 (Inconvertible type (assign double to Integer) not highlighted as error)

This commit is contained in:
Bas Leijdekkers
2013-09-14 22:13:13 +02:00
parent 0200babeca
commit e16694eabf
3 changed files with 19 additions and 5 deletions
@@ -42,5 +42,9 @@ public class a {
int i1='d';
<error descr="Incompatible types. Found: 'long', required: 'int'">int i2 = 1L;</error>
Integer destination = 25;
<error descr="Incompatible types. Found: 'double', required: 'java.lang.Integer'">destination += 2.0</error>;
Byte b = 1;
<error descr="Incompatible types. Found: 'int', required: 'java.lang.Byte'">b -= 1</error>;
}
}