summaryrefslogtreecommitdiff
path: root/test/files/neg/lubs.check
blob: 81c280e76f28de0d903c581c8c6db200d0546571 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
lubs.scala:11: error: type mismatch;
 found   : test1.this.A[test1.this.A[test1.this.A[Any]]]
 required: test1.this.A[test1.this.A[test1.this.A[test1.this.A[Any]]]]
  val x4: A[A[A[A[Any]]]] = f
                            ^
lubs.scala:24: error: type mismatch;
 found   : test2.this.A{type T >: test2.this.C with test2.this.D <: test2.this.A}
 required: test2.this.A{type T >: Null <: test2.this.A{type T >: Null <: test2.this.A}}
  val x3: A { type T >: Null <: A { type T >: Null <: A } } = f
                                                              ^
lubs.scala:25: error: type mismatch;
 found   : test2.this.A{type T >: test2.this.C with test2.this.D <: test2.this.A}
 required: test2.this.A{type T >: Null <: test2.this.A{type T >: Null <: test2.this.A{type T >: Null <: test2.this.A}}}
  val x4: A { type T >: Null <: A { type T >: Null <: A { type T >: Null <: A } } } = f
                                                                                      ^
three errors found