Create from Usage: Add test for KT-14500
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Create extension function 'Test.invoke'" "true"
|
||||
class Test
|
||||
|
||||
fun test() {
|
||||
var t = Test()
|
||||
<caret>t{
|
||||
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Create extension function 'Test.invoke'" "true"
|
||||
class Test
|
||||
|
||||
fun test() {
|
||||
var t = Test()
|
||||
t{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private operator fun Test.invoke(function: () -> Unit) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
@@ -2835,6 +2835,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/invoke/invokeWithExplicitParamNamesOnUserType.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaArgument.kt")
|
||||
public void testLambdaArgument() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/invoke/lambdaArgument.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/quickfix/createFromUsage/createFunction/iterator")
|
||||
|
||||
Reference in New Issue
Block a user