'Suppress warnings' as quick fix options

If no quick fix is available a special intention is shown
This commit is contained in:
Andrey Breslav
2013-09-22 19:24:46 +04:00
parent b379ab3ebd
commit a13b66c58e
79 changed files with 879 additions and 9 deletions
@@ -0,0 +1,6 @@
// "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true"
// ERROR: An integer literal does not conform to the expected type jet.String
// ERROR: An integer literal does not conform to the expected type jet.String
[suppress(1, "REDUNDANT_NULLABLE")]
fun foo(): String?<caret>? = null
@@ -0,0 +1,5 @@
// "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true"
// ERROR: Unresolved reference: ann
[suppress("REDUNDANT_NULLABLE")]
[ann] fun foo(): String?<caret>? = null
@@ -0,0 +1,6 @@
// "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true"
// ERROR: An integer literal does not conform to the expected type jet.String
// ERROR: An integer literal does not conform to the expected type jet.String
[suppress(1)]
fun foo(): String?<caret>? = null
@@ -0,0 +1,4 @@
// "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true"
// ERROR: Unresolved reference: ann
[ann] fun foo(): String?<caret>? = null