## Minimized code ```Scala object UnitTest extends App { def foo(m: Unit) = m match { case runtime.BoxedUnit.UNIT => println("ok") } foo(()) } ``` ## Output compiles and prints "ok" ## Expectation error like in Scala 2 ```scala UnitTest.scala:4: error: type mismatch; found : scala.runtime.BoxedUnit required: Unit case runtime.BoxedUnit.UNIT => println("ok") ^ 1 error ```