Implement quick fix for converting primitive types
#KT-10476 Fixed
This commit is contained in:
committed by
Dmitry Jemerov
parent
b328f37495
commit
48310d66da
+7
@@ -0,0 +1,7 @@
|
||||
// "Convert expression to 'Float'" "true"
|
||||
fun foo() {
|
||||
bar(1 + 3L<caret>)
|
||||
}
|
||||
|
||||
fun bar(l: Float) {
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Convert expression to 'Float'" "true"
|
||||
fun foo() {
|
||||
bar((1 + 3L).toFloat()<caret>)
|
||||
}
|
||||
|
||||
fun bar(l: Float) {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Convert expression to 'Int'" "true"
|
||||
fun foo() {
|
||||
bar(1L<caret>)
|
||||
}
|
||||
|
||||
fun bar(l: Int) {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Convert expression to 'Int'" "true"
|
||||
fun foo() {
|
||||
bar(1L.toInt()<caret>)
|
||||
}
|
||||
|
||||
fun bar(l: Int) {
|
||||
}
|
||||
Reference in New Issue
Block a user