Don't print descriptors' toString() in diagnostic messages

Use DescriptorRenderer.TEXT instead, it doesn't print the debug information
This commit is contained in:
Alexander Udalov
2014-04-08 23:34:11 +04:00
parent 5be2a4945b
commit adec89f74d
10 changed files with 75 additions and 6 deletions
@@ -0,0 +1,8 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: EXTENSION_IN_CLASS_REFERENCE_NOT_ALLOWED
class extensionInClassReference {
fun Int.foo() {}
val bar = Int::foo
}