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
// !CHECK_TYPE
fun main(args : Array<String>) {
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
class A() {
operator infix fun plus(<!UNUSED_PARAMETER!>i<!> : Int) {}
operator fun unaryMinus() {}
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
//KT-2164 !! does not propagate nullability information
package kt2164
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -DEBUG_INFO_SMARTCAST
//KT-2216 Nullability of a value determined in function parameter computation doesn't pass to code following
package kt2216
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER, -SENSELESS_COMPARISON, -DEBUG_INFO_SMARTCAST
fun takeNotNull(s: String) {}