diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-19 10:22:22 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-19 10:27:23 -0700 |
commit | beb08c206b24e00167a11ea13d1cd998b8e3b067 (patch) | |
tree | 1bde617daddd0206fd512904c3f15a02dd801b4b /test/files/neg/t6336.check | |
parent | 8c69f4da333f17290da26c3951fa9c8805014e47 (diff) | |
download | scala-beb08c206b24e00167a11ea13d1cd998b8e3b067.tar.gz scala-beb08c206b24e00167a11ea13d1cd998b8e3b067.tar.bz2 scala-beb08c206b24e00167a11ea13d1cd998b8e3b067.zip |
Error message improvement for SI-6336.
Position error messages about structural type members at the
problematic parameter or type.
Diffstat (limited to 'test/files/neg/t6336.check')
-rw-r--r-- | test/files/neg/t6336.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/t6336.check b/test/files/neg/t6336.check index c3ddf81f21..f70a5f70ab 100644 --- a/test/files/neg/t6336.check +++ b/test/files/neg/t6336.check @@ -1,7 +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 } - ^ + ^ 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 |