summaryrefslogblamecommitdiff
path: root/test/files/neg/valueclasses-impl-restrictions.check
blob: 0af9173f74fc6e5bf7800d41ed220e2dc992af6c (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                                                                                      
                                                                                                                     


                                                                 
                                                                                                                      


                                                                 
                  
valueclasses-impl-restrictions.scala:3: error: implementation restriction: nested object is not allowed in value class
This restriction is planned to be removed in subsequent releases.
      object X
             ^
valueclasses-impl-restrictions.scala:9: error: implementation restriction: nested trait is not allowed in value class
This restriction is planned to be removed in subsequent releases.
  trait I2 {
        ^
valueclasses-impl-restrictions.scala:23: error: implementation restriction: nested class is not allowed in value class
This restriction is planned to be removed in subsequent releases.
  private[this] class I2(val q: String)
                      ^
three errors found