Create from Usage: Add test for KT-14500

This commit is contained in:
Alexey Sedunov
2016-11-02 16:21:22 +03:00
parent a414843f54
commit 2ff8e922f0
3 changed files with 28 additions and 0 deletions
@@ -0,0 +1,9 @@
// "Create extension function 'Test.invoke'" "true"
class Test
fun test() {
var t = Test()
<caret>t{
}
}
@@ -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.
}