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

Scala example source code file (t2641.check)

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

a,coll, any, managedseq, managedseq, managedseqstrict, managedseqstrict, scalaobject, scalaobject's, sliced, sliced, transformed, transformed, traversableview, traversableviewlike

The Scala t2641.check source code

t2641.scala:19: error: illegal cyclic reference involving trait ManagedSeq
        with TraversableViewLike[A, ManagedSeqStrict[A], ManagedSeq[A]]
                                                         ^
t2641.scala:17: error: illegal inheritance;
 self-type ManagedSeq does not conform to ManagedSeqStrict[A]'s selftype ManagedSeqStrict[A]
        extends ManagedSeqStrict[A]
                ^
t2641.scala:18: error: illegal inheritance;
 self-type ManagedSeq does not conform to scala.collection.TraversableView[A,ManagedSeqStrict[A]]'s selftype scala.collection.TraversableView[A,ManagedSeqStrict[A]]
        with TraversableView[A, ManagedSeqStrict[A]]
             ^
t2641.scala:17: error: illegal inheritance;
 self-type ManagedSeq does not conform to ScalaObject's selftype ScalaObject
        extends ManagedSeqStrict[A]
        ^
t2641.scala:25: error: something is wrong (wrong class file?): trait ManagedSeq with type parameters [A,Coll] gets applied to arguments [], phase = typer
  trait Transformed[+B] extends ManagedSeq[B, Coll] with super.Transformed[B]
        ^
t2641.scala:27: error: something is wrong (wrong class file?): trait ManagedSeq with type parameters [A,Coll] gets applied to arguments [], phase = namer
  trait Sliced extends Transformed[A] with super.Sliced {
               ^
t2641.scala:27: error: illegal inheritance; superclass Any
 is not a subclass of the superclass ManagedSeqStrict
 of the mixin trait Transformed
  trait Sliced extends Transformed[A] with super.Sliced {
                       ^
t2641.scala:27: error: illegal inheritance; superclass Any
 is not a subclass of the superclass Object
 of the mixin trait Sliced
  trait Sliced extends Transformed[A] with super.Sliced {
                                                 ^
t2641.scala:28: error: value managedIterator is not a member of ManagedSeq
    override def managedIterator = self.managedIterator slice (from, until)
                                        ^
9 errors found

Other Scala examples (source code examples)

Here is a short list of links related to this Scala t2641.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.