Extract Function: Infer parameter type candidates
#KT-4940 Fixed
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
<selection>// test
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
if (b(a)) return a
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
<selection>/*
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
if (b(a)) return a
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
<selection>println(a)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
if (b(a)) return a
|
||||
|
||||
Reference in New Issue
Block a user