Files
kotlin/compiler/testData/codegen/box/binaryOp/compareWithBoxedDouble.kt
2016-03-24 14:11:25 +01:00

15 lines
243 B
Kotlin
Vendored

//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"
}