Skip to content

Commit

Permalink
fix #13346: add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Apr 20, 2022
1 parent 9ed0762 commit 0f207e5
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 0f207e5

Please sign in to comment.