File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ class TreeBuffer extends TastyBuffer(50000) {
159
159
val tree = it.next
160
160
treeAddrs.get(tree) match {
161
161
case addr : Addr => treeAddrs.put(tree, adjusted(addr))
162
- case addrs : List [Addr ] => treeAddrs.put(tree, addrs.map(adjusted))
162
+ case addrs : List [Addr @ unchecked ] => treeAddrs.put(tree, addrs.map(adjusted))
163
163
}
164
164
}
165
165
}
Original file line number Diff line number Diff line change @@ -264,9 +264,9 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisTran
264
264
ctx.error(s " ${ident.name} is not a member of ${expr.show}" , ident.pos)
265
265
}
266
266
selectors.foreach {
267
- case ident : Ident => checkIdent(ident)
268
- case Thicket ((ident : Ident ) :: _) => checkIdent(ident)
269
- case _ =>
267
+ case ident @ Ident (_) => checkIdent(ident)
268
+ case Thicket ((ident @ Ident (_) ) :: _) => checkIdent(ident)
269
+ case _ =>
270
270
}
271
271
super .transform(tree)
272
272
case tree =>
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ class TreeChecker extends Phase with SymTransformer {
145
145
override def checkDerivedValueClass (clazz : Symbol , stats : List [Tree ])(implicit ctx : Context ) = ()
146
146
147
147
def withDefinedSym [T ](tree : untpd.Tree )(op : => T )(implicit ctx : Context ): T = tree match {
148
- case tree : DefTree =>
148
+ case tree : DefTree @ unchecked =>
149
149
val sym = tree.symbol
150
150
assert(isValidJVMName(sym.name), s " ${sym.fullName} name is invalid on jvm " )
151
151
everDefinedSyms.get(sym) match {
Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ object ProtoTypes {
539
539
/** Dummy tree to be used as an argument of a FunProto or ViewProto type */
540
540
object dummyTreeOfType {
541
541
def apply (tp : Type ): Tree = untpd.Literal (Constant (null )) withTypeUnchecked tp
542
- def unapply (tree : Tree ): Option [Type ] = tree match {
542
+ def unapply (tree : Tree @ unchecked ): Option [Type ] = tree match {
543
543
case Literal (Constant (null )) => Some (tree.typeOpt)
544
544
case _ => None
545
545
}
You can’t perform that action at this time.
0 commit comments