Annotation parameter must be constant on vararg and array arguments

This commit is contained in:
Natalia Ukhorskaya
2014-01-22 13:10:18 +04:00
parent 97da2def08
commit fd3f852a93
5 changed files with 162 additions and 24 deletions
@@ -1,4 +1,6 @@
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
[suppress("FOO"<caret>!!)]
fun foo() {}
[Ann(Integer.MAX_VALUE<caret> + 1)]
fun foo() {}
annotation class Ann(val b: Int)