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

Scala example source code file (scopes.check)

This example Scala source code file (scopes.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

float, float, int, int

The Scala scopes.check source code

scopes.scala:3: error: t is already defined as type t
  type t = Float
       ^
scopes.scala:5: error: x is already defined as value x
  val x: Float = .0f;
      ^
scopes.scala:8: error: y is already defined as value y
    val y: Float = .0f
        ^
scopes.scala:11: error: x is already defined as value x
  def f1(x: Int, x: Float) = x
                 ^
scopes.scala:12: error: y is already defined as value y
  def f2(x: Int)(y: Int, y: Float) = x + y
                         ^
scopes.scala:13: error: x is already defined as value x
  val closure = (x: Int, x: Float) => x
                          ^
scopes.scala:15: error: x is already defined as value x
    case x::x => x
            ^
7 errors found

Other Scala examples (source code examples)

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

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 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.