Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaladoc should not expand the prefix of a dependent type #10017

Open
scabug opened this issue Nov 1, 2016 · 1 comment
Open

Scaladoc should not expand the prefix of a dependent type #10017

scabug opened this issue Nov 1, 2016 · 1 comment

Comments

@scabug
Copy link

scabug commented Nov 1, 2016

Given a source file:

package myPackage
object TypeRefinementScalaDoc {
  trait Base {
    type T1
    type T2
    type Out <: (T1, T2)
  }
  type Alias1 = Base {
    type T1 <: AnyVal
  }
  type Alias2 = Alias1 {
    type T1 = Int
    type T2 = String
  }

  def out: Alias2#Out = ???
}

I expect the type of out method in the generated HTML is Alias2#Out, the same as the source file. Unfortunately it is (Alias1 \{ ... /* 2 definitions in type refinement */ \})#Out, a partially expanded type alias, which makes little sense to readers.

@scabug
Copy link
Author

scabug commented Nov 1, 2016

Imported From: https://issues.scala-lang.org/browse/SI-10017?orig=1
Reporter: @Atry
Affected Versions: 2.10.6, 2.11.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant