Skip to content

Commit

Permalink
Add test for #3441
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Jun 4, 2024
1 parent 6e4b0af commit 6e01b6b
Showing 1 changed file with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,28 @@ class DSLTests {
""".compilationSucceeds()
}

@Test
fun `DSL for a class in a package including it, issue #3441`() {
"""
|package it.facile.assicurati
|
|$imports
|
|@optics
|data class Source(val models: String) {
| companion object
|}
|
|@optics
|sealed class PrismSealed(val field: String, val nullable: String?) {
| data class PrismSealed1(private val a: String?) : PrismSealed("", a)
| data class PrismSealed2(private val b: String?) : PrismSealed("", b)
| companion object
|}
|
""".compilationSucceeds()
}

@Test
fun `DSL works with variance, issue #3057`() {
"""
Expand Down Expand Up @@ -173,6 +195,4 @@ class DSLTests {
|}
""".compilationSucceeds()
}

// Db.content.at(At.map(), One).set(db, None)
}

0 comments on commit 6e01b6b

Please sign in to comment.