Skip to content

Commit

Permalink
Merge pull request scala#7083 from xuwei-k/t8012
Browse files Browse the repository at this point in the history
add test case for t8012
  • Loading branch information
lrytz authored Aug 16, 2018
2 parents 790cd69 + 30a5ee9 commit 3a50d9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/files/neg/t8012.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
t8012.scala:4: error: class type required but p.C[_] found
object `package` extends C[_]
^
one error found
5 changes: 5 additions & 0 deletions test/files/neg/t8012.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package p {
class C[A]

object `package` extends C[_]
}

0 comments on commit 3a50d9f

Please sign in to comment.