We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ad84e commit d6ba95bCopy full SHA for d6ba95b
src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -161,6 +161,12 @@ class TreeChecker {
161
res
162
}
163
164
+
165
+ override def typedReturn(tree: untpd.Return)(implicit ctx: Context): tpd.Return = {
166
+ assert(!(tree.from.symbol is Label), i"returns from labels aren't supported: $tree")
167
+ super.typedReturn(tree)
168
+ }
169
170
private def checkOwner(tree: untpd.Tree)(implicit ctx: Context): Unit = {
171
def ownerMatches(symOwner: Symbol, ctxOwner: Symbol): Boolean =
172
symOwner == ctxOwner ||
0 commit comments