summaryrefslogblamecommitdiff
path: root/test/files/neg/t3977.scala
blob: 11a8cdba4b006f146be802322ed8f9ccc544061c (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                    
                               
 

            
trait Bool {
  type If[T]
}

trait False extends Bool {
  type If[F] = F
}

class Field[E, N <: Bool](implicit val w: N#If[E]) {
  type NoNull = Field[E, False]

  new NoNull
}