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

Scala example source code file (t4044.check)

This example Scala source code file (t4044.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, anyref, anyref, c, m, m, n, n, n's, n's, o

The Scala t4044.check source code

t4044.scala:9: error: AnyRef takes no type parameters, expected: one
  M[AnyRef] // error, (AnyRef :: *) not kind-conformant to (N :: * -> * -> *)
    ^
t4044.scala:9: error: kinds of the type arguments (<error>) do not conform to the expected kinds of the type parameters (type N).
<error>'s type parameters do not match type N's expected parameters:  has no type parameters, but type N has one
  M[AnyRef] // error, (AnyRef :: *) not kind-conformant to (N :: * -> * -> *)
   ^
t4044.scala:11: error: kinds of the type arguments (Test.A) do not conform to the expected kinds of the type parameters (type N).
Test.A's type parameters do not match type N's expected parameters: type _ has no type parameters, but type O has one
  M[A] // error, (A :: (* -> *) not kind-conformant to (N :: * -> * -> *)
   ^
t4044.scala:15: error: kinds of the type arguments (Test.C) do not conform to the expected kinds of the type parameters (type N).
Test.C's type parameters do not match type N's expected parameters: type _ has one type parameter, but type _ has none
  M[C] // error, (C :: (* -> * -> * -> *) not kind-conformant to (N :: * -> * -> *)
   ^
four errors found

Other Scala examples (source code examples)

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