diff options
author | Jarrod Janssen <jrodjanssen@gmail.com> | 2017-01-02 15:09:53 -0600 |
---|---|---|
committer | Jarrod Janssen <jrodjanssen@gmail.com> | 2017-01-02 15:56:11 -0600 |
commit | 2fd8ea88e7f732482afa795eab0a74be5cc36663 (patch) | |
tree | bf13d6210f57526d11bc170f40fdf7994e88fe7f /compiler/src/dotty/tools/dotc/parsing/Parsers.scala | |
parent | 39c27b6a8aaa2c7303db54011082246ada06c0a0 (diff) | |
download | dotty-2fd8ea88e7f732482afa795eab0a74be5cc36663.tar.gz dotty-2fd8ea88e7f732482afa795eab0a74be5cc36663.tar.bz2 dotty-2fd8ea88e7f732482afa795eab0a74be5cc36663.zip |
Add error message for unbound wildcard type.
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 1e8fb9d26..18f0b42f5 100644 --- a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala +++ b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala @@ -676,7 +676,7 @@ object Parsers { val t = typ() findWildcardType(t) match { case Some(wildcardPos) => - syntaxError("unbound wildcard type", wildcardPos) + syntaxError(UnboundWildcardType(), wildcardPos) scalaAny case None => t } |