summaryrefslogblamecommitdiff
path: root/test/files/neg/t6336.check
blob: f70a5f70ab352ab6f55525586b857555cd261394 (plain) (tree)
1
2
3
4
5
6
7

                                                                                                         
                            

                                                                                                      
                                   
                
t6336.scala:3: error: Parameter type in structural refinement may not refer to a user-defined value class
    val a = new { def y[T](x: X[T]) = x.i }
                           ^
t6336.scala:4: error: Result type in structural refinement may not refer to a user-defined value class
    val b = new { def y[T](x: T): X[T] = new X(2) }
                                  ^
two errors found