Skip to content

Commit

Permalink
Add a test for pinterest#963
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kameyama committed Nov 17, 2020
1 parent a234cc1 commit 2fb8329
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,4 +705,25 @@ internal class IndentationRuleTest {
)
).isEmpty()
}

@Test
fun `lint delegation 5`() {
assertThat(
IndentationRule().lint(
"""
interface Foo
class Bar(a: Int, b: Int, c: Int) : Foo
class Test5 {
companion object : Foo by Bar(
a = 1,
b = 2,
c = 3
)
}
""".trimIndent()
)
).isEmpty()
}
}

0 comments on commit 2fb8329

Please sign in to comment.