Place !WITH_NEW_INFERENCE directive to diagnostics test data
This commit is contained in:
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
class A {
|
||||
operator fun component1() : Int = 1
|
||||
operator fun component2() : Int = 2
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
package a
|
||||
|
||||
class MyClass {
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
class A {
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = 1.0
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
fun useDeclaredVariables() {
|
||||
for ((a, b)<!SYNTAX!><!>) {
|
||||
<!UNUSED_EXPRESSION, DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>a<!>
|
||||
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
|
||||
class A {
|
||||
operator fun component1() = 1
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE
|
||||
// !CHECK_TYPE
|
||||
fun foo(block: () -> (() -> Int)) {}
|
||||
|
||||
Reference in New Issue
Block a user