Skip to content

Commit cda1ad4

Browse files
mglukhikhSpace Team
authored and
Space Team
committed
K2: reproduce KT-67912
(cherry picked from commit f6a80b8)
1 parent 8e0919e commit cda1ad4

File tree

9 files changed

+108
-0
lines changed

9 files changed

+108
-0
lines changed

analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// ISSUE: KT-67912
2+
// WITH_STDLIB
3+
4+
interface Bound
5+
6+
inline fun <reified F : Bound> foo(key: String): F? = null
7+
8+
fun main() {
9+
val otherValue: Map<String, String> by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>lazy {
10+
foo("") ?: emptyMap()
11+
}<!>
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// ISSUE: KT-67912
2+
// WITH_STDLIB
3+
4+
interface Bound
5+
6+
inline fun <reified F : Bound> foo(key: String): F? = null
7+
8+
fun main() {
9+
val otherValue: Map<String, String> by lazy {
10+
foo("") ?: emptyMap()
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// ISSUE: KT-67912
2+
// WITH_STDLIB
3+
4+
interface Bound
5+
6+
inline fun <reified F : Bound> foo(key: String): F? = null
7+
8+
fun main() {
9+
val value: Map<String, String> = <!INITIALIZER_TYPE_MISMATCH, NEW_INFERENCE_ERROR!>requireNotNull(
10+
foo("")
11+
)<!>
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// ISSUE: KT-67912
2+
// WITH_STDLIB
3+
4+
interface Bound
5+
6+
inline fun <reified F : Bound> foo(key: String): F? = null
7+
8+
fun main() {
9+
val value: Map<String, String> = requireNotNull(
10+
foo("")
11+
)
12+
}

compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)