aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
diff options
context:
space:
mode:
authorAllan Renucci <allan.renucci@gmail.com>2017-04-03 21:20:24 +0200
committerAllan Renucci <allan.renucci@gmail.com>2017-04-03 21:20:24 +0200
commit8377c0da86f7e9959e40e4b863a4831df9947e67 (patch)
tree5e09e2d8d6d2bdd32fef28bb4f56623e9c0e508f /compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
parent5021c768ccd123e148291bdda28920dea5e85630 (diff)
downloaddotty-8377c0da86f7e9959e40e4b863a4831df9947e67.tar.gz
dotty-8377c0da86f7e9959e40e4b863a4831df9947e67.tar.bz2
dotty-8377c0da86f7e9959e40e4b863a4831df9947e67.zip
Fixes @unchecked warnings
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala')
-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..ed274a3dc 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: Tree @unchecked): Option[Type] = tree match {
case Literal(Constant(null)) => Some(tree.typeOpt)
case _ => None
}