Add runtime dependency to tests where exception references are used.

This commit is contained in:
Ilya Gorbunov
2016-08-12 18:34:49 +03:00
parent 6f7b908dbb
commit 570ac8b821
20 changed files with 21 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
// WITH_RUNTIME
fun foo() {
for (i in list()<caret>!!) {}
@@ -1,4 +1,5 @@
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
// WITH_RUNTIME
fun foo() {
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
+1
View File
@@ -1,4 +1,5 @@
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
// WITH_RUNTIME
fun foo(): Any {
throw Exception(""<caret>!!)
@@ -1,4 +1,5 @@
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
// WITH_RUNTIME
fun foo(): Any {
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")