|
Scala example source code file (t1477.scala)
The Scala t1477.scala source codeobject Test extends App { trait A trait B extends A trait C { type U trait D { type T >: B <: A } type V <: D val y: V#T = new B { } } trait Middle extends C { type V <: (D with U) } class D extends Middle { trait E trait F { type T = E } type U = F def frob(arg : E) : E = arg frob(y) } new D } Other Scala examples (source code examples)Here is a short list of links related to this Scala t1477.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.