aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/issues/errorClasses.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <sem-oro@yandex.ru>2016-11-08 18:31:36 +0300
committerGitHub <noreply@github.com>2016-11-08 18:31:36 +0300
commitbeb338920611e802754fc7a8d71a61ee14bd1ea0 (patch)
treedd369d145d57bd74300f5a55546adca0152c919d /core/testdata/issues/errorClasses.kt
parentc4cf001951bbe92223fdedaf4bb5fbdeddeb2472 (diff)
parenta014843ed2de90c6ac73e2a8acb41f617ff86432 (diff)
downloaddokka-beb338920611e802754fc7a8d71a61ee14bd1ea0.tar.gz
dokka-beb338920611e802754fc7a8d71a61ee14bd1ea0.tar.bz2
dokka-beb338920611e802754fc7a8d71a61ee14bd1ea0.zip
Merge pull request #110 from Kotlin/0.9.10/GH-79
Fix for GH-79 , KT-13299 Critical bug, top-level Kotlin functions from libraries not resolved
Diffstat (limited to 'core/testdata/issues/errorClasses.kt')
-rw-r--r--core/testdata/issues/errorClasses.kt20
1 files changed, 20 insertions, 0 deletions
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