Skip to content

Commit 04d1f12

Browse files
committed
Fix #11466: add test
1 parent 72f1fcf commit 04d1f12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/neg/i114666.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
open class GraphDB[Id]:
2+
class Node private[GraphDB](val id: Id)
3+
end GraphDB
4+
5+
object graph extends GraphDB[String]
6+
import graph.*
7+
8+
@main
9+
def Test = new Node("Alice") // error

0 commit comments

Comments
 (0)