|
Scala example source code file (bug1878.check)
The Scala bug1878.check source code
bug1878.scala:3: error: _* may only come last
val err1 = "" match { case Seq(f @ _*, ',') => f }
^
bug1878.scala:3: error: scrutinee is incompatible with pattern type;
found : Seq[A]
required: java.lang.String
val err1 = "" match { case Seq(f @ _*, ',') => f }
^
bug1878.scala:9: error: _* may only come last
val List(List(_*, arg2), _) = List(List(1,2,3), List(4,5,6))
^
bug1878.scala:13: error: _* may only come last
case <p> { _* } =>
^
four errors found
Other Scala examples (source code examples)Here is a short list of links related to this Scala bug1878.check source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.