Allow to use collection literals only in annotations

This commit is contained in:
Mikhail Zarechenskiy
2017-03-21 03:11:54 +03:00
parent bfe2ddf7c1
commit a2ea518b1a
7 changed files with 40 additions and 3 deletions
@@ -1,4 +1,4 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
// !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED
fun basicTypes() {
val a: IntArray = [1]