Skip to content

Commit

Permalink
Add regression test for scala#9355
Browse files Browse the repository at this point in the history
  • Loading branch information
griggt committed Dec 31, 2020
1 parent 0a8bb4b commit e24bb31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/pos/i9355/MainTest_2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object MainTest extends App {
println(JSON.JArray(1))
}
9 changes: 9 additions & 0 deletions tests/pos/i9355/Main_1.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
object JSON {
sealed trait Json
final case class JArray(elems: JValue*) extends Json
type JValue = Number | JArray
}

object Main extends App {
println(JSON.JArray(1))
}

0 comments on commit e24bb31

Please sign in to comment.