diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-20 10:24:58 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-20 10:24:58 -0700 |
commit | 9ec19f34ace7ffe327e8bf54e252cca50d3ac7ff (patch) | |
tree | f00fa691a419413bdfd511e210da9b14acb4339c /test/files/neg/t6336.check | |
parent | 45c0b2428219b6a00514e21529650b32631880b6 (diff) | |
parent | beb08c206b24e00167a11ea13d1cd998b8e3b067 (diff) | |
download | scala-9ec19f34ace7ffe327e8bf54e252cca50d3ac7ff.tar.gz scala-9ec19f34ace7ffe327e8bf54e252cca50d3ac7ff.tar.bz2 scala-9ec19f34ace7ffe327e8bf54e252cca50d3ac7ff.zip |
Merge pull request #1356 from paulp/pullreq-1342
Pullreq 1342
Diffstat (limited to 'test/files/neg/t6336.check')
-rw-r--r-- | test/files/neg/t6336.check | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/files/neg/t6336.check b/test/files/neg/t6336.check index f6b35ad232..f70a5f70ab 100644 --- a/test/files/neg/t6336.check +++ b/test/files/neg/t6336.check @@ -1,4 +1,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 } - ^ -one error found + ^ +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 |