summaryrefslogblamecommitdiff
path: root/test/files/neg/gadts1.check
blob: 9b7ea5556a80972be16afa771dc955e03c6a398b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                             
                                   
                 




                                      
                
gadts1.scala:20: error: Test.Cell[a] does not take parameters
    case Cell[a](x: Int) => c.x = 5
                ^
gadts1.scala:20: error: type mismatch;
 found   : Int(5)
 required: a
    case Cell[a](x: Int) => c.x = 5
                                  ^
two errors found