From a014843ed2de90c6ac73e2a8acb41f617ff86432 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Tue, 8 Nov 2016 18:08:00 +0300 Subject: Fix for GH-79 , KT-13299 Critical bug, top-level Kotlin functions from libraries not resolved --- core/testdata/issues/errorClasses.kt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 core/testdata/issues/errorClasses.kt (limited to 'core/testdata/issues') diff --git a/core/testdata/issues/errorClasses.kt b/core/testdata/issues/errorClasses.kt new file mode 100644 index 00000000..9e966b3a --- /dev/null +++ b/core/testdata/issues/errorClasses.kt @@ -0,0 +1,20 @@ + +class Test(var value: String) { + fun brokenApply(v: String) = apply { value = v } + + fun brokenRun(v: String) = run { + value = v + this + } + + fun brokenLet(v: String) = let { + it.value = v + it + } + + fun brokenGenerics() = listOf("a", "b", "c") + + fun working(v: String) = doSomething() + + fun doSomething(): String = "Hello" +} \ No newline at end of file -- cgit