File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compiler/src/dotty/tools/backend/jvm Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ 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 => t
95+ case t : Template =>
96+ assert(false )
97+ t
9698 case t : Apply if labelDefs.contains(t.symbol) =>
9799 val labelDef = labelDefs(t.symbol)
98100 labelDefs -= t.symbol
@@ -115,7 +117,7 @@ class LabelDefs extends MiniPhase {
115117 val labelDefs = new mutable.HashMap [Symbol , DefDef ]()
116118 new TreeTraverser {
117119 override def traverse (tree : tpd.Tree )(implicit ctx : Context ): Unit = tree match {
118- case _ : Template =>
120+ case _ : Template => assert( false )
119121 case t : DefDef =>
120122 assert(t.symbol is Label )
121123 labelDefs(t.symbol) = t
You can’t perform that action at this time.
0 commit comments