Skip to content

Commit c0b83f8

Browse files
Fix: add check that Java value class type conforms
1 parent 84a7494 commit c0b83f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/run/classof.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ object Test {
55
def main(args: Array[String]): Unit = {
66
val cls: Predef.Class[SomeClass] = classOf[SomeClass]
77
val valCls: Predef.Class[ValueClass] = classOf[ValueClass]
8+
val iCls: Class[Int] = classOf[Int]
89

910
println("Value types:")
1011
println(classOf[Unit])

0 commit comments

Comments
 (0)