Skip to content

constructor proxies with type parameters are not exported #13346

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

Closed
unkarjedy opened this issue Aug 20, 2021 · 0 comments · Fixed by #14985
Closed

constructor proxies with type parameters are not exported #13346

unkarjedy opened this issue Aug 20, 2021 · 0 comments · Fixed by #14985

Comments

@unkarjedy
Copy link
Contributor

related #11128

Compiler version

3.0.2-RC1

Minimized code

object Outer_Typed {
  object Inner {
    class ClassUntyped(x: Int)
    class ClassTyped[T](x: T) // notice type parameter

    // ok
    val _ = new ClassUntyped(42)
    val _ = new ClassTyped("42")
    val _ = ClassUntyped(42)
    val _ = ClassTyped("42")
  }

  export Inner._
 
  val _ = new ClassUntyped(42)
  val _ = new ClassTyped("42")
  val _ = ClassUntyped(42)
  val _ = ClassTyped("42") // error: Not found: ClassTyped
}

Output

The compiler produces error for val _ = ClassTyped("42") in the Outer_Typed

Outer_Typed.scala:
Not found: ClassTyped

Expectation

bishabosha added a commit to dotty-staging/dotty that referenced this issue Apr 20, 2022
bishabosha added a commit to dotty-staging/dotty that referenced this issue Apr 20, 2022
smarter added a commit that referenced this issue Apr 21, 2022
michelou pushed a commit to michelou/scala3 that referenced this issue Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants