Skip to content

Commit 0f207e5

Browse files
committed
fix #13346: add regression test
1 parent 9ed0762 commit 0f207e5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/pos/i13346.scala

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
object Outer_Typed {
2+
object Inner {
3+
class ClassUntyped(x: Int)
4+
class ClassTyped[T](x: T) // notice type parameter
5+
6+
// ok
7+
val _ = new ClassUntyped(42)
8+
val _ = new ClassTyped("42")
9+
val _ = ClassUntyped(42)
10+
val _ = ClassTyped("42")
11+
}
12+
13+
export Inner._
14+
15+
val _ = new ClassUntyped(42)
16+
val _ = new ClassTyped("42")
17+
val _ = ClassUntyped(42)
18+
val _ = ClassTyped("42") // error: Not found: ClassTyped
19+
}

0 commit comments

Comments
 (0)