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