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.
This commit is contained in:
Ilya Gorbunov
2019-12-25 21:00:49 +03:00
parent 8af43155c3
commit ec6fdc5d4d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,6 +3,6 @@ import kotlin.reflect.*
fun foo() { fun foo() {
String::class.primaryConstructor String::class.primaryConstructor
Void::class Void::class
::foo.isExternal ::foo.name
listOf(42) listOf(42)
} }
+2 -2
View File
@@ -5,10 +5,10 @@ compiler/testData/cli/jvm/noStdlib.kt:4:19: error: unresolved reference: primary
String::class.primaryConstructor 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 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 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 compiler/testData/cli/jvm/noStdlib.kt:7:5: error: unresolved reference: listOf
listOf(42) listOf(42)