From 05be100f53a18e67fe548aeadc6090983ee118e6 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Fri, 26 Dec 2014 21:55:10 +0300 Subject: [PATCH] Corrected test data which was incorrect before --- idea/testData/completion/smart/This.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idea/testData/completion/smart/This.kt b/idea/testData/completion/smart/This.kt index 6d0e5e771e3..c1e6ecda7ad 100644 --- a/idea/testData/completion/smart/This.kt +++ b/idea/testData/completion/smart/This.kt @@ -16,12 +16,13 @@ class Outer { fun takeHandler1(handler: Int.() -> Unit){} fun takeHandler2(handler: Char.() -> Unit){} -fun takeHandler3(handler: Any?.() -> Unit){} +fun takeHandler3(handler: (Any?).() -> Unit){} fun takeHandler4(handler: Any.() -> Unit){} // EXIST: { lookupString: "this", itemText: "this", tailText: null, typeText: "Any", attributes: "bold" } // ABSENT: "this@takeHandler4" -// ABSENT: "this@takeHandler3" +// EXIST: { lookupString: "this@takeHandler3", itemText: "!! this", tailText: "@takeHandler3", typeText: "Any?", attributes: "bold" } +// EXIST: { lookupString: "this@takeHandler3", itemText: "?: this", tailText: "@takeHandler3", typeText: "Any?", attributes: "bold" } // EXIST: { lookupString: "this@takeHandler2", itemText: "this", tailText: "@takeHandler2", typeText: "Char", attributes: "bold" } // EXIST: { lookupString: "this@takeHandler1", itemText: "this", tailText: "@takeHandler1", typeText: "Int", attributes: "bold" } // EXIST: { lookupString: "this@foo", itemText: "this", tailText: "@foo", typeText: "String", attributes: "bold" }