diff options
Diffstat (limited to 'test/files/neg/t1960.check')
-rw-r--r-- | test/files/neg/t1960.check | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/files/neg/t1960.check b/test/files/neg/t1960.check index 5238141c4e..bb6d3d3548 100644 --- a/test/files/neg/t1960.check +++ b/test/files/neg/t1960.check @@ -1,4 +1,7 @@ -t1960.scala:5: error: parameter 'p' requires field but conflicts with method p in trait TBase -class Aclass (p: Int) extends TBase { def g() { f(p) } } - ^ -one error found +t1960.scala:2: error: parameter 'vr' requires field but conflicts with variable vr in trait T +class C(vr: Int, vl: Int) extends T { def ref = vr + vl } + ^ +t1960.scala:2: error: parameter 'vl' requires field but conflicts with value vl in trait T +class C(vr: Int, vl: Int) extends T { def ref = vr + vl } + ^ +two errors found |