Added a test

This commit is contained in:
Valentin Kipyatkov
2015-04-01 20:03:28 +03:00
parent 1df39ab82b
commit 4e283fd62f
3 changed files with 38 additions and 0 deletions
@@ -0,0 +1,19 @@
package second
fun (String.() -> Unit)?.helloFun1() {
}
fun Function0<Unit>.helloFun2() {
}
fun ExtensionFunction0<String, Unit>.helloFun3() {
}
fun ExtensionFunction0<Int, Unit>.helloFun4() {
}
fun Function1<String, Unit>.helloFun5() {
}
fun Any.helloAny() {
}
@@ -0,0 +1,13 @@
package first
fun firstFun(p: String.() -> Unit) {
p.hello<caret>
}
// EXIST: helloFun1
// ABSENT: helloFun2
// EXIST: helloFun3
// ABSENT: helloFun4
// ABSENT: helloFun5
// EXIST: helloAny
// NUMBER: 3