Skip to content

Commit 5633399

Browse files
committed
Add testcases of exports for manual testing
1 parent f8e2559 commit 5633399

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package tests
2+
package exports
3+
4+
class A:
5+
def defInt: Int = 1
6+
def def1: 1 = 1
7+
val valInt: Int = 1
8+
val val1: 1 = 1
9+
var varInt: Int = 1
10+
var var1: 1 = 1
11+
12+
class B:
13+
val a = new A
14+
export a._

scala3doc/src/dotty/dokka/site/PartiallyRenderedContent.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,17 @@ case class PartiallyRenderedContent(
4040
}
4141
}// forrach does not work here
4242
document.outerHtml()
43+
44+
45+
class A:
46+
def defInt: Int = 1
47+
def def1: 1 = 1
48+
val valInt: Int = 1
49+
val val1: 1 = 1
50+
var varInt: Int = 1
51+
var var1: 1 = 1
52+
53+
class B:
54+
val a = new A
55+
export a._
56+

scala3doc/src/dotty/dokka/translators/FilterAttributes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object FilterAttributes:
4343
case Origin.InheritedFrom(name, _) => Map("inherited" -> name)
4444
case Origin.ImplicitlyAddedBy(name, _) => Map("implicitly" -> s"by $name")
4545
case Origin.ExtensionFrom(name, _) => Map("extension" -> s"from $name")
46-
case Origin.ExportedFrom(name, _) => Map("export" -> s"Exported from $name")
46+
case Origin.ExportedFrom(name, _) => Map("export" -> s"from $name")
4747
case _ => Map.empty
4848
case null =>
4949
Map.empty

0 commit comments

Comments
 (0)