aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i0281-null-primitive-conforms.scala
blob: 618a0d854dd7f06d09356f9e70863737b2ee9f65 (plain) (tree)
1
2
3
4
5
6
             
                                                              
                    

                                                              
 
object test {
  val b: scala.Boolean = null                         // error
  val c: Unit = null
  val d: Float = null                                 // error
  val e: AnyVal = null                                // error
}