Skip to content

Commit

Permalink
test erasure of ValueOf from dotty
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Dec 16, 2020
1 parent 6b590a1 commit 17a4adf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/tasty/run/src-2/tastytest/TestValueOfErasure.scala
@@ -0,0 +1,7 @@
package tastytest

object TestValueOfErasure extends Suite("TestValueOfErasure") {

test(assert(ValueOfErasure.reify[23] === 23))

}
5 changes: 5 additions & 0 deletions test/tasty/run/src-3/tastytest/ValueOfErasure.scala
@@ -0,0 +1,5 @@
package tastytest

object ValueOfErasure {
def reify[I <: Int](implicit I: ValueOf[I]): I = valueOf[I]
}

0 comments on commit 17a4adf

Please sign in to comment.