Report error on callable reference or class literal with "-no-stdlib"

Also workaround the NoSuchElementException that was happening because error
type never has any type arguments

 #KT-14547 Fixed
This commit is contained in:
Alexander Udalov
2017-01-30 13:24:17 +03:00
parent 7371dc9b54
commit 8811165de8
3 changed files with 19 additions and 3 deletions
+1
View File
@@ -2,5 +2,6 @@ import kotlin.reflect.*
fun foo() {
String::class.primaryConstructor
::foo.isExternal
listOf(42)
}