aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i997a.scala
blob: eae56400fe51f5841e3470850e936080eb5e8a93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class C {

  class Super

  object O {

    private case class CC(x: Int)

    private implicit class D(x: Int) extends Super
  }

  import O._

  println(O.CC(1)) // error: CC cannot be accessed

  val s: Super = 1 // error: type mismatch


}