aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/typer
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-04-04 13:45:40 +0200
committerGitHub <noreply@github.com>2017-04-04 13:45:40 +0200
commit42c2a6fbbddf73ef2faeb6204c2b7521a76d7345 (patch)
treeaf1a711407a2b16922672890e98faa8915f9dc8b /compiler/src/dotty/tools/dotc/typer
parenta71cb970b779692d2dd68cd9ba00d2be5e6759be (diff)
parentfee6953c75eb93956e4e33ff8351aa2ec992854c (diff)
downloaddotty-42c2a6fbbddf73ef2faeb6204c2b7521a76d7345.tar.gz
dotty-42c2a6fbbddf73ef2faeb6204c2b7521a76d7345.tar.bz2
dotty-42c2a6fbbddf73ef2faeb6204c2b7521a76d7345.zip
Merge pull request #2168 from allanrenucci/warnings
Fixes `@unchecked` warnings
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer')
-rw-r--r--compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala b/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
index f7dd725c8..f96b8ae1d 100644
--- a/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
+++ b/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
@@ -539,7 +539,7 @@ object ProtoTypes {
/** Dummy tree to be used as an argument of a FunProto or ViewProto type */
object dummyTreeOfType {
def apply(tp: Type): Tree = untpd.Literal(Constant(null)) withTypeUnchecked tp
- def unapply(tree: Tree): Option[Type] = tree match {
+ def unapply(tree: untpd.Tree): Option[Type] = tree match {
case Literal(Constant(null)) => Some(tree.typeOpt)
case _ => None
}