Skip to content

Commit 433bdf4

Browse files
committed
chore: fix the signature test to include annotations
1 parent 02fab3f commit 433bdf4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

scaladoc-testcases/src/tests/namedTuples.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package tests.namedTuples
22

3-
import language.experimental.namedTuples
43
import NamedTuple.*
54

65
type Person = (name: String, age: Int)

scaladoc-testcases/src/tests/refinedFunctionTypes.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ package refinedFunctionTypes
44
import annotation.experimental
55

66
@experimental
7-
infix type $throws[R, +E <: Exception] = CanThrow[E] ?=> R
7+
infix type $throws[R, +E <: Exception] = CanThrow[E] ?=> R //expected: @experimental infix type $throws[R, +E <: Exception] = CanThrow[E] ?=> R
88

99
@experimental
10-
infix type $throws2[+E <: Exception] = (c: CanThrow[E]) ?=> c.type
10+
infix type $throws2[+E <: Exception] = (c: CanThrow[E]) ?=> c.type //expected: @experimental infix type $throws2[+E <: Exception] = (c: CanThrow[E]) ?=> c.type
1111

1212
@experimental
13-
infix type $throws3[+E <: Exception] = [T] => (c: CanThrow[E]) ?=> c.type
13+
infix type $throws3[+E <: Exception] = [T] => (c: CanThrow[E]) ?=> c.type //expected: @experimental infix type $throws3[+E <: Exception] = [T] => (c: CanThrow[E]) ?=> c.type
1414

1515
@experimental
16-
infix type $throws4[+E <: Exception] = [T] => (c: CanThrow[E]) ?=> T //expected: infix type $throws4[+E <: Exception] = [T] => CanThrow[E] ?=> T
16+
infix type $throws4[+E <: Exception] = [T] => (c: CanThrow[E]) ?=> T //expected: @experimental infix type $throws4[+E <: Exception] = [T] => CanThrow[E] ?=> T
1717

1818
type TA1 = (a: Int, b: (Boolean, String)) => List[(a.type, b.type)]
1919

2020
type TA2 = (a: Int, b: (Boolean, String)) ?=> List[Boolean]
2121

2222
@experimental
23-
type TB0 = [R, E <: Exception] =>> PolyFunction { def apply[T](c: CanThrow[E]): R; } //expected: type TB0[R, E <: Exception] = [T] => CanThrow[E] => R
23+
type TB0 = [R, E <: Exception] =>> PolyFunction { def apply[T](c: CanThrow[E]): R; } //expected: @experimental type TB0[R, E <: Exception] = [T] => CanThrow[E] => R
2424

2525
@experimental
26-
type TB1 = [R, E <: Exception] =>> PolyFunction { def apply[T](c: CanThrow[E], y: c.type): R; } //expected: type TB1[R, E <: Exception] = [T] => (c: CanThrow[E], y: c.type) => R
26+
type TB1 = [R, E <: Exception] =>> PolyFunction { def apply[T](c: CanThrow[E], y: c.type): R; } //expected: @experimental type TB1[R, E <: Exception] = [T] => (c: CanThrow[E], y: c.type) => R
2727

2828
@experimental
29-
type TB2 = [R, E <: Exception] =>> PolyFunction { def apply[T](using c: CanThrow[E]): c.type; } //expected: type TB2[R, E <: Exception] = [T] => (c: CanThrow[E]) ?=> c.type
29+
type TB2 = [R, E <: Exception] =>> PolyFunction { def apply[T](using c: CanThrow[E]): c.type; } //expected: @experimental type TB2[R, E <: Exception] = [T] => (c: CanThrow[E]) ?=> c.type
3030

3131
type TC1 = [T] => (a: T) => T //expected: type TC1 = [T] => T => T
3232

0 commit comments

Comments
 (0)