Simplify diagnostic when there are wrong number of type arguments

#KT-12767 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-07-10 18:43:02 +03:00
parent e82c909f75
commit ee173077c0
15 changed files with 36 additions and 16 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2016 JetBrains s.r.o.
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -106,6 +106,12 @@ abstract class DescriptorRenderer {
modifiers = emptySet()
}
@JvmField val COMPACT_WITHOUT_SUPERTYPES: DescriptorRenderer = withOptions {
withDefinedIn = false
modifiers = emptySet()
withoutSuperTypes = true
}
@JvmField val COMPACT_WITH_SHORT_TYPES: DescriptorRenderer = withOptions {
modifiers = emptySet()
classifierNamePolicy = ClassifierNamePolicy.SHORT