From 35316be5a89b2c9622e92594245aaf72a3820c88 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 21 Aug 2012 07:40:28 +0200 Subject: Better errors for Any/AnyRef issues. When an error occurs because some type does not conform to AnyRef (and an AnyRef-derived type would have sufficed) try to say something useful about the situation. This commit also initializes scope members before printing error messages because the + version seems more useful than the - version (taken from one of the checkfile diffs.) - def : - def methodIntIntInt: + def (): X + def methodIntIntInt(x: scala.Int,y: scala.Int): scala.Int --- test/files/run/t5256f.check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/files/run/t5256f.check') diff --git a/test/files/run/t5256f.check b/test/files/run/t5256f.check index c840793fd5..e0fec85596 100644 --- a/test/files/run/t5256f.check +++ b/test/files/run/t5256f.check @@ -1,12 +1,12 @@ class A1 Test.A1 Object { - def : - def foo: + def (): Test.A1 + def foo: Nothing } class A2 Test.A2 Object { - def : - def foo: + def (): Test.this.A2 + def foo: Nothing } -- cgit v1.2.3