Skip to content

Commit

Permalink
Add test for #3441 (#3450)
Browse files Browse the repository at this point in the history
  • Loading branch information
serras authored Jun 19, 2024
1 parent 082c779 commit 432ffba
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 432ffba

Please sign in to comment.