Place !WITH_NEW_INFERENCE directive to diagnostics test data
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun <T> array1(vararg a : T) = a
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class A {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
fun foo1(b: Boolean, c: Int) {
|
||||
if (b && <!TYPE_MISMATCH!>c<!>) {}
|
||||
if (b || <!TYPE_MISMATCH!>c<!>) {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
//KT-1897 When call cannot be resolved to any function, save information about types of arguments
|
||||
|
||||
package a
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
|
||||
fun foo() {}
|
||||
|
||||
Reference in New Issue
Block a user