Test for KT-11514: Platform Double is converted to Int when comparing to Int literal
#KT-11514 Fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user