From ec6fdc5d4df379643a2ecdd4b31e3b57b7981554 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 25 Dec 2019 21:00:49 +0300 Subject: [PATCH] Fix noStdlib cli test Replace 'isExternal' with 'name', since 'name' is still available in builtins and 'isExternal' is only accessible with a proper stdlib dependency. --- compiler/testData/cli/jvm/noStdlib.kt | 2 +- compiler/testData/cli/jvm/noStdlib.out | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/testData/cli/jvm/noStdlib.kt b/compiler/testData/cli/jvm/noStdlib.kt index 1fd608749a4..4029cc06676 100644 --- a/compiler/testData/cli/jvm/noStdlib.kt +++ b/compiler/testData/cli/jvm/noStdlib.kt @@ -3,6 +3,6 @@ import kotlin.reflect.* fun foo() { String::class.primaryConstructor Void::class - ::foo.isExternal + ::foo.name listOf(42) } diff --git a/compiler/testData/cli/jvm/noStdlib.out b/compiler/testData/cli/jvm/noStdlib.out index 03ea072f6b5..78ccc5d9f30 100644 --- a/compiler/testData/cli/jvm/noStdlib.out +++ b/compiler/testData/cli/jvm/noStdlib.out @@ -5,10 +5,10 @@ compiler/testData/cli/jvm/noStdlib.kt:4:19: error: unresolved reference: primary String::class.primaryConstructor ^ compiler/testData/cli/jvm/noStdlib.kt:6:7: error: cannot access built-in declaration 'kotlin.Unit'. Ensure that you have a dependency on the Kotlin standard library - ::foo.isExternal + ::foo.name ^ compiler/testData/cli/jvm/noStdlib.kt:6:11: error: cannot access built-in declaration 'kotlin.reflect.KFunction0'. Ensure that you have a dependency on the Kotlin standard library - ::foo.isExternal + ::foo.name ^ compiler/testData/cli/jvm/noStdlib.kt:7:5: error: unresolved reference: listOf listOf(42)