|
Scala example source code file (bug875.scala)
The Scala bug875.scala source code
object Test extends App {
val xs = List(4, 5, 6)
val ys = List(1, 2, 3, xs: _*)
def mkList1(x: Int) = List(x)
def mkList2(x: Boolean) = List(x)
mkList1(xs: _*)
def f(x: Int*) = List(x: _*)
def f(x: Boolean, y: Int*) = List(y: _*)
def g[a](x: a*) = List(x: _*)
f(true, 1, xs: _*)
g(1, xs:_*)
}
Other Scala examples (source code examples)Here is a short list of links related to this Scala bug875.scala 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.