|
Scala example source code file (cls.scala)
The Scala cls.scala source codeimport scala._; package scalac.util { class A[X1, X2](x1: X1, x2: X2) {} class B[Y](y1: Y, y2: Y) extends A[Y, Y](y1, y2) { def f(x: Y, xs: B[Y]): Unit = {} def g() = f(y1, this); } object test { val b: B[Int] = new B[Int](1, 2); val a: A[Int, Int] = b; val a1 = new A(1, "hello"); val b1 = new B(1, "hello"); } } Other Scala examples (source code examples)Here is a short list of links related to this Scala cls.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.