alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (bug1183.check)

This example Scala source code file (bug1183.check) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

bam, bam, bar, bar, baz, baz, foo, foo

The Scala bug1183.check source code

bug1183.scala:10: error: name clash: class Foo defines object Baz
and its companion object Foo also defines class Baz
    object Baz
           ^
bug1183.scala:11: error: name clash: class Foo defines class Bam
and its companion object Foo also defines object Bam
    class Bam
          ^
bug1183.scala:12: error: name clash: class Foo defines object Bar
and its companion object Foo also defines class Bar
    object Bar
           ^
bug1183.scala:13: error: name clash: class Foo defines class Bar
and its companion object Foo also defines class Bar
    case class Bar(i:Int)
               ^
four errors found

Other Scala examples (source code examples)

Here is a short list of links related to this Scala bug1183.check source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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.