Skip to content

Commit aedd4e0

Browse files
authored
Merge pull request #2122 from dotty-staging/fix-i2086
Fixed #2086: Add tests for issue that has already been fixed.
2 parents a108c7a + f8b521a commit aedd4e0

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)