summaryrefslogblamecommitdiff
path: root/test/files/neg/t5683.check
blob: 7c0e50113c077d525b4f5d65184b8433aacb8a82 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                                                     
t5683.scala:12: error: inferred kinds of the type arguments (Object,Int) do not conform to the expected kinds of the type parameters (type M,type B).
Object's type parameters do not match type M's expected parameters:
class Object has no type parameters, but type M has one
  val crash: K[StringW,Int,Int] = k{ (y: Int) => null: W[String, Int] }
                                  ^
t5683.scala:12: error: type mismatch;
 found   : Int => Test.W[String,Int]
 required: Int => M[B]
  val crash: K[StringW,Int,Int] = k{ (y: Int) => null: W[String, Int] }
                                              ^
t5683.scala:12: error: type mismatch;
 found   : Test.K[M,Int,B]
 required: Test.K[Test.StringW,Int,Int]
  val crash: K[StringW,Int,Int] = k{ (y: Int) => null: W[String, Int] }
                                   ^
three errors found