|
Scala example source code file (inferbroadtype.scala)
The Scala inferbroadtype.scala source codeobject Test { abstract class Base { val changesBaseClasses: Boolean } class Concrete extends Base { val changesBaseClasses = true } def getBase : Base = new Concrete var c = new Base { val changesBaseClasses = true } c = getBase } Other Scala examples (source code examples)Here is a short list of links related to this Scala inferbroadtype.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.