Fix KtModifierListOwner.addAnnotation (case without modifier list)

Now add annotation to primary constructor should work correctly,
and may be some other related cases too.

Related to KT-25548
This commit is contained in:
Mikhail Glukhikh
2018-08-23 18:32:07 +03:00
parent 5f2c7d3c84
commit 55ff519aa8
3 changed files with 10 additions and 25 deletions
@@ -1,6 +1,5 @@
// "Suppress 'REDUNDANT_NULLABLE' for val a" "true"
fun foo() {
@Suppress("REDUNDANT_NULLABLE")
val a: String?<caret>? = null
@Suppress("REDUNDANT_NULLABLE") val a: String?<caret>? = null
}