[JS] add CLI test for KT-60531

This commit is contained in:
Anton Bannykh
2023-09-04 19:52:17 +02:00
committed by Space Team
parent 1e66f25546
commit 002cd011d4
4 changed files with 30 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
compiler/testData/cli/js/compilationErrorK2.kt:9:13: error: cannot access 'companion object Test : Any': it is private in '/Foo'.
Foo.Test
^
COMPILATION_ERROR