Skip to content

Commit 2be1b41

Browse files
committedOct 15, 2023
New scheme
1 parent 1df49f1 commit 2be1b41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+710
-593
lines changed
 

‎compiler/src/dotty/tools/dotc/Compiler.scala

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class Compiler {
8383
new PatternMatcher) :: // Compile pattern matches
8484
List(new TestRecheck.Pre) :: // Test only: run rechecker, enabled under -Yrecheck-test
8585
List(new TestRecheck) :: // Test only: run rechecker, enabled under -Yrecheck-test
86-
List(new cc.AddTryOwners) :: // Add symbols as owners of try blocks, enabled under captureChecking
8786
List(new cc.Setup) :: // Preparations for check captures phase, enabled under captureChecking
8887
List(new cc.CheckCaptures) :: // Check captures, enabled under captureChecking
8988
List(new ElimOpaque, // Turn opaque into normal aliases

‎compiler/src/dotty/tools/dotc/ast/Desugar.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ object desugar {
437437
private def toDefParam(tparam: TypeDef, keepAnnotations: Boolean): TypeDef = {
438438
var mods = tparam.rawMods
439439
if (!keepAnnotations) mods = mods.withAnnotations(Nil)
440-
tparam.withMods(mods & EmptyFlags | Param)
440+
tparam.withMods(mods & (EmptyFlags | Sealed) | Param)
441441
}
442442
private def toDefParam(vparam: ValDef, keepAnnotations: Boolean, keepDefault: Boolean): ValDef = {
443443
var mods = vparam.rawMods

0 commit comments

Comments
 (0)
Please sign in to comment.