diff options
author | Martin Odersky <odersky@gmail.com> | 2016-02-12 09:58:33 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-12 09:58:41 +0100 |
commit | 9b3c727a0faa0e0f693a4053e0bb260c695e62ff (patch) | |
tree | b5c73f83ce89aa77a9e3da2bb9a927d563e6c70d /tests/neg | |
parent | 13b61653439700ca6607074bcded4d714131bdc2 (diff) | |
download | dotty-9b3c727a0faa0e0f693a4053e0bb260c695e62ff.tar.gz dotty-9b3c727a0faa0e0f693a4053e0bb260c695e62ff.tar.bz2 dotty-9b3c727a0faa0e0f693a4053e0bb260c695e62ff.zip |
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.
Diffstat (limited to 'tests/neg')
-rw-r--r-- | tests/neg/i324.scala | 5 |
1 files changed, 5 insertions, 0 deletions
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 +} |