From 9b3c727a0faa0e0f693a4053e0bb260c695e62ff Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 12 Feb 2016 09:58:33 +0100 Subject: Survive class of errors in implicit search An `C.this` term with erroneous class `C` will get a `NoPrefix` type. A subsequent implicit search on this crashed. This is fixed now. Fixes #324. --- tests/neg/i324.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/neg/i324.scala (limited to 'tests/neg/i324.scala') diff --git a/tests/neg/i324.scala b/tests/neg/i324.scala new file mode 100644 index 000000000..1d03a4d02 --- /dev/null +++ b/tests/neg/i324.scala @@ -0,0 +1,5 @@ +class O +object O { + val x: this.type = OO.this + val y: O = OO.this +} -- cgit v1.2.3