From 07259e768372194a64ba64f75ebb269b9120b4f1 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Mon, 17 Sep 2012 18:01:15 +0400 Subject: [PATCH] Added completion handler test with built-in extension function. --- idea/testData/completion/handlers/ExtFunction.kt | 3 +++ idea/testData/completion/handlers/ExtFunction.kt.after | 3 +++ .../jet/completion/handlers/CompletionHandlerTest.java | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 idea/testData/completion/handlers/ExtFunction.kt create mode 100644 idea/testData/completion/handlers/ExtFunction.kt.after diff --git a/idea/testData/completion/handlers/ExtFunction.kt b/idea/testData/completion/handlers/ExtFunction.kt new file mode 100644 index 00000000000..a12a341e26e --- /dev/null +++ b/idea/testData/completion/handlers/ExtFunction.kt @@ -0,0 +1,3 @@ +fun main(args : Array) { + "".toS +} \ No newline at end of file diff --git a/idea/testData/completion/handlers/ExtFunction.kt.after b/idea/testData/completion/handlers/ExtFunction.kt.after new file mode 100644 index 00000000000..bad7b3b6669 --- /dev/null +++ b/idea/testData/completion/handlers/ExtFunction.kt.after @@ -0,0 +1,3 @@ +fun main(args : Array) { + "".toString() +} \ No newline at end of file diff --git a/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java b/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java index 0be2e25cd40..91297f67b13 100644 --- a/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java +++ b/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java @@ -68,6 +68,10 @@ public class CompletionHandlerTest extends LightCompletionTestCase { doTest(); } + public void testExtFunction() { + doTest(); + } + public void testHigherOrderFunction() { doTest(); }