File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
compiler/src/dotty/tools/backend/jvm Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,6 @@ class LabelDefs extends MiniPhase {
9292 def putLabelDefsNearCallees = new TreeMap () {
9393 override def transform (tree : tpd.Tree )(implicit ctx : Context ): tpd.Tree = {
9494 tree match {
95- case t : Template =>
96- assert(false )
97- t
9895 case t : Apply if labelDefs.contains(t.symbol) =>
9996 val labelDef = labelDefs(t.symbol)
10097 labelDefs -= t.symbol
@@ -117,7 +114,6 @@ class LabelDefs extends MiniPhase {
117114 val labelDefs = new mutable.HashMap [Symbol , DefDef ]()
118115 new TreeTraverser {
119116 override def traverse (tree : tpd.Tree )(implicit ctx : Context ): Unit = tree match {
120- case _ : Template => assert(false )
121117 case t : DefDef =>
122118 assert(t.symbol is Label )
123119 labelDefs(t.symbol) = t
You can’t perform that action at this time.
0 commit comments