Remove redundant calls of the conversion method: report for unsigned types

#KT-30263 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-03-03 15:51:09 +09:00
committed by Yan Zhulanow
parent 38b6b73745
commit a2f55e8b7c
10 changed files with 58 additions and 1 deletions
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: UByte) {
val foo = i.toUByte()<caret>
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: UByte) {
val foo = i
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: UInt) {
val foo = i.toUInt()<caret>
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: UInt) {
val foo = i
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: ULong) {
val foo = i.toULong()<caret>
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: ULong) {
val foo = i
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: UShort) {
val foo = i.toUShort()<caret>
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun test(i: UShort) {
val foo = i
}