File tree 2 files changed +15
-2
lines changed 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class DocCompiler extends Compiler {
30
30
List (new DocImplicitsPhase ) ::
31
31
List (new DocASTPhase ) ::
32
32
List (DocMiniTransformations (new UsecasePhase ,
33
- new DocstringPhase ,
34
- new PackageObjectsPhase ,
33
+ new DocstringPhase )) ::
34
+ List ( DocMiniTransformations ( new PackageObjectsPhase ,
35
35
new LinkReturnTypes ,
36
36
new LinkParamListTypes ,
37
37
new LinkImplicitlyAddedTypes ,
Original file line number Diff line number Diff line change @@ -49,4 +49,17 @@ class TestSimpleComments extends DottyDocTest {
49
49
assertEquals(traitCmt, " <p>Hello, world!</p>" )
50
50
}
51
51
}
52
+
53
+ @ Test def commentOnPackageObject = {
54
+ val source =
55
+ """
56
+ |/** Hello, world! */
57
+ |package object foobar { class A }
58
+ """ .stripMargin
59
+
60
+ checkSource(source) { packages =>
61
+ val packageCmt = packages(" foobar" ).comment.get.body
62
+ assertEquals(" <p>Hello, world!</p>" , packageCmt)
63
+ }
64
+ }
52
65
}
You can’t perform that action at this time.
0 commit comments