Skip to content

Commit f8b521a

Browse files
committed
Fixed #2086: Add tests for issue that has already been fixed.
1 parent 53b808f commit f8b521a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/neg/i2086a.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
object Test { // error: Test cannot be instantiated since it has a member type Foo with possibly conflicting bounds Any <: ... <: Nothing
3+
type Foo >: Any <: Nothing
4+
}

tests/neg/i2086b.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
object Test { // error: Test cannot be instantiated since it has a member type Bound with possibly conflicting bounds [Left, Right] => Left <: ... <: [Left, Right] => Right
3+
type Bound[Left, Right] >: Left <: Right
4+
type Foo = Bound[Any, Nothing]
5+
}

0 commit comments

Comments
 (0)