File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class Compiler {
57
57
new TailRec ),
58
58
List (new PatternMatcher ,
59
59
new ExplicitOuter ,
60
- new LazyValTranformContext ().transformer, // disabled, awaiting fixes
60
+ new LazyValTranformContext ().transformer,
61
61
new Splitter ),
62
62
List (new ElimByName ,
63
63
new InterceptedMethods ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import core.StdNames._
12
12
import dotty .tools .dotc .ast .{TreeTypeMap , tpd }
13
13
import dotty .tools .dotc .core
14
14
import dotty .tools .dotc .core .DenotTransformers .DenotTransformer
15
+ import dotty .tools .dotc .core .Phases .Phase
15
16
import dotty .tools .dotc .core .{TypeApplications , Flags }
16
17
import dotty .tools .dotc .typer .Applications
17
18
import dotty .tools .dotc .util .Positions
@@ -41,6 +42,8 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
41
42
42
43
override def runsAfter = Set (classOf [ElimRepeated ])
43
44
45
+ override def runsAfterGroupsOf = Set (classOf [TailRec ]) // tailrec is not capable of reversing the patmat tranformation made for tree
46
+
44
47
override def phaseName = " patternMatcher"
45
48
46
49
var _id = 0
You can’t perform that action at this time.
0 commit comments