Skip to content

Commit

Permalink
Remove test failing on new compiler diagnostic error
Browse files Browse the repository at this point in the history
Multiple labels are forbidden on statements from 2.0.0-Beta4

https://youtrack.jetbrains.com/issue/KT-53629
  • Loading branch information
3flex committed Apr 29, 2024
1 parent 1b0eeb9 commit c8ecc74
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,23 +215,6 @@ class UnnecessaryBracesAroundTrailingLambdaSpec(val env: KotlinCoreEnvironment)
assertThat(findings).hasSize(1)
}

@Test
fun `does not report lambda has nested labels`() {
val code = """
fun test() {
foo(bar@ foo@{ bar(it) })
}
fun foo(f: (String) -> Int) {
f("")
}
fun bar(s: String) = s.length
""".trimIndent()
val findings = subject.compileAndLintWithContext(env, code)
assertThat(findings).isEmpty()
}

@Test
fun `does report generic param lambda has braces around it`() {
val code = """
Expand Down

0 comments on commit c8ecc74

Please sign in to comment.