Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 541 Bytes
package miniboxing.example
case class MyTuple2[@miniboxed T1, @miniboxed T2](t1: T1, t2: T2)
object Test {
def main(args: Array[String]): Unit = {
println("MyTuple of [Double, Double] dot getClass(): " + new MyTuple2(1.1, 1.1).getClass())
println("MyTuple of [Double, String] dot getClass(): " + new MyTuple2(1.1, "1").getClass())
println("MyTuple of [String, Double] dot getClass(): " + new MyTuple2("1", 1.1).getClass())
println("MyTuple of [String, String] dot getClass(): " + new MyTuple2("1", "1").getClass())
}
}