K2 ignore return type on special java funs overrides
#KT-62197 fixed
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// FIR_IDENTICAL
|
||||
// FILE: main.kt
|
||||
|
||||
fun main() {
|
||||
MutableLong().toLong()
|
||||
}
|
||||
|
||||
// FILE: MutableLong.java
|
||||
public class MutableLong extends Number {
|
||||
|
||||
private long value;
|
||||
|
||||
public MutableLong() {
|
||||
}
|
||||
|
||||
public int intValue() {
|
||||
return (int)this.value;
|
||||
}
|
||||
|
||||
public long longValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public float floatValue() {
|
||||
return (float)this.value;
|
||||
}
|
||||
|
||||
public double doubleValue() {
|
||||
return (double)this.value;
|
||||
}
|
||||
|
||||
public Long toLong() {
|
||||
return this.longValue();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user