summaryrefslogtreecommitdiff
path: root/test/scaladoc/run/t7876b.scala
blob: 4d5b8c22cf7e039380070dd8bb381e03429f4ea6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import scala.tools.nsc.doc.model._
import scala.tools.partest.ScaladocModelTest

// Don't dealias just to print a Function or Tuple type.
object Test extends ScaladocModelTest {

  override def code = """
  class Test {
     type FInt = Function0[Int]
     type TInt = Tuple1[Int]
     def foo: FInt
     def bar: TInt
  }
                      """

  def scaladocSettings = ""

  def testModel(rootPackage: Package) = {
    import access._
    List("foo", "bar").foreach { name =>
      println("foo: " + rootPackage._class("Test")._method(name).resultType.name)
    }
  }
}