aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/transform/PostTyper.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/transform/PostTyper.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/transform/PostTyper.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/transform/PostTyper.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/PostTyper.scala b/compiler/src/dotty/tools/dotc/transform/PostTyper.scala
index 8dff58dea..1a6ebb65d 100644
--- a/compiler/src/dotty/tools/dotc/transform/PostTyper.scala
+++ b/compiler/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -264,9 +264,9 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisTran
ctx.error(s"${ident.name} is not a member of ${expr.show}", ident.pos)
}
selectors.foreach {
- case ident: Ident => checkIdent(ident)
- case Thicket((ident: Ident) :: _) => checkIdent(ident)
- case _ =>
+ case ident @ Ident(_) => checkIdent(ident)
+ case Thicket((ident @ Ident(_)) :: _) => checkIdent(ident)
+ case _ =>
}
super.transform(tree)
case tree =>