Place !WITH_NEW_INFERENCE directive to diagnostics test data

This commit is contained in:
Mikhail Zarechenskiy
2017-11-20 09:26:11 +03:00
parent 81b3fefa58
commit a71238bf94
468 changed files with 468 additions and 0 deletions
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
package uninitialized_reassigned_variables
fun doSmth(<!UNUSED_PARAMETER!>s<!>: String) {}
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
// See KT-8277
val v = { true } <!USELESS_ELVIS!>?: ( { true } <!USELESS_ELVIS_ON_LAMBDA_EXPRESSION!>?:<!> null!! )<!>
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
// See KT-15566
import DefaultHttpClient.client
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
// AssertionError for nested ifs with lambdas and Nothing as results
val <!IMPLICIT_NOTHING_PROPERTY_TYPE!>fn<!> = if (true) {
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
// See KT-10913 Bogus unreachable code warning
fun fn() : String? = null