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:
+1
-1
@@ -3,6 +3,6 @@ import kotlin.reflect.*
|
||||
fun foo() {
|
||||
String::class.primaryConstructor
|
||||
Void::class
|
||||
::foo.isExternal
|
||||
::foo.name
|
||||
listOf(42)
|
||||
}
|
||||
|
||||
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user