object Test extends dotty.runtime.LegacyApp{ Stream.from(1) match { case Stream(1, 2, x :_*) => println("It worked!") } }