Skip to content

Commit 5ed7960

Browse files
committed
Add function type testcases
1 parent 2ecde3a commit 5ed7960

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package tests.functionTypeSignatures
2+
3+
type A = ((Int, Int)) => Int
4+
5+
type B = (Int | String) => Int
6+
7+
type C = (Int & String) => Int
8+
9+
type E = (A => B) => B
10+

scaladoc/test/dotty/tools/scaladoc/signatures/TranslatableSignaturesTestCases.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ class Exports extends SignatureTest("exports2", SignatureTest.all, sourceFiles =
9494
class ContextFunctions extends SignatureTest("contextfunctions", SignatureTest.all)
9595

9696
class MarkdownCode extends SignatureTest("markdowncode", SignatureTest.all)
97+
98+
class FunctionTypeSignatures extends SignatureTest("functionTypeSignatures", SignatureTest.all)

0 commit comments

Comments
 (0)