Skip to content

Commit

Permalink
Merge pull request #14985 from dotty-staging/fix-13346
Browse files Browse the repository at this point in the history
fix #13346: add regression test
  • Loading branch information
smarter authored Apr 21, 2022
2 parents e2e2885 + 0f207e5 commit b636633
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/pos/i13346.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
}

0 comments on commit b636633

Please sign in to comment.