diff options
author | Adam Trousdale <adam.trousdale@sky.com> | 2016-12-21 20:12:56 +0000 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-12-21 21:12:56 +0100 |
commit | ee4f4a109b3ec3190886c75bb6d140087c33287d (patch) | |
tree | 704d89e1c3f3465afee76178c746382e22235512 /compiler/src/dotty/tools/dotc/parsing/Parsers.scala | |
parent | f3bf225c241fcf0db8f71585e15161f2cda9bd59 (diff) | |
download | dotty-ee4f4a109b3ec3190886c75bb6d140087c33287d.tar.gz dotty-ee4f4a109b3ec3190886c75bb6d140087c33287d.tar.bz2 dotty-ee4f4a109b3ec3190886c75bb6d140087c33287d.zip |
Add error messages - Parsers.scala:712 (#1842)
* Add error messages - Parsers.scala:712
* Tidy up imports and formatting
Diffstat (limited to 'compiler/src/dotty/tools/dotc/parsing/Parsers.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/parsing/Parsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala index 76f82d8af..57dd1ea20 100644 --- a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala +++ b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala @@ -730,7 +730,7 @@ object Parsers { in.token match { case ARROW => functionRest(t :: Nil) - case FORSOME => syntaxError("existential types no longer supported; use a wildcard type or dependent type instead"); t + case FORSOME => syntaxError(ExistentialTypesNoLongerSupported()); t case _ => t } } |