diff options
Diffstat (limited to 'test/files/neg/t6601/AccessPrivateConstructor_2.scala')
-rw-r--r-- | test/files/neg/t6601/AccessPrivateConstructor_2.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/neg/t6601/AccessPrivateConstructor_2.scala b/test/files/neg/t6601/AccessPrivateConstructor_2.scala new file mode 100644 index 0000000000..816bc10d79 --- /dev/null +++ b/test/files/neg/t6601/AccessPrivateConstructor_2.scala @@ -0,0 +1,3 @@ +class AccessPrivateConstructor { + new PrivateConstructor("") // Scalac should forbid accessing to the private constructor! +} |