diff options
author | Allan Renucci <allan.renucci@gmail.com> | 2017-04-04 11:27:06 +0200 |
---|---|---|
committer | Allan Renucci <allan.renucci@gmail.com> | 2017-04-04 11:34:17 +0200 |
commit | fee6953c75eb93956e4e33ff8351aa2ec992854c (patch) | |
tree | a05b67cbd81bd286cc16b3b072ba4c38bf5d7084 /compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala | |
parent | 4aba4f798d2027a94b07631fd0589abe60eb644e (diff) | |
download | dotty-fee6953c75eb93956e4e33ff8351aa2ec992854c.tar.gz dotty-fee6953c75eb93956e4e33ff8351aa2ec992854c.tar.bz2 dotty-fee6953c75eb93956e4e33ff8351aa2ec992854c.zip |
Addresses review comments
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala | 2 |
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 ed274a3dc..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 @unchecked): Option[Type] = tree match { + def unapply(tree: untpd.Tree): Option[Type] = tree match { case Literal(Constant(null)) => Some(tree.typeOpt) case _ => None } |