diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt new file mode 100644 index 00000000000..df80c1c4113 --- /dev/null +++ b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt @@ -0,0 +1,8 @@ +// WITH_RUNTIME +// !DIAGNOSTICS: -UNUSED_VARIABLE + +class Foo>(val values: Array) + +fun foo(x: Array>) { + val y = Foo(x) +} diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt index fe88e3bdabc..429a229c0c3 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt @@ -1,9 +1,8 @@ -// FIR_IDENTICAL // WITH_RUNTIME // !DIAGNOSTICS: -UNUSED_VARIABLE class Foo>(val values: Array) fun foo(x: Array>) { - val y = Foo(x) + val y = Foo(x) }