Test for KT-11514: Platform Double is converted to Int when comparing to Int literal

#KT-11514 Fixed
This commit is contained in:
Michael Bogdanov
2016-03-24 12:49:14 +01:00
parent d0aac74e72
commit 0fdba49315
2 changed files with 21 additions and 0 deletions
@@ -0,0 +1,15 @@
//FILE: Holder.java
class Holder {
public Double value;
public Holder(Double value) { this.value = value; }
}
//FILE: test.kt
import Holder
fun box(): String {
val j = Holder(0.99)
return if (j.value > 0) "OK" else "fail"
}