diff options
Diffstat (limited to 'tests/untried/neg/t6601.check')
-rw-r--r-- | tests/untried/neg/t6601.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/untried/neg/t6601.check b/tests/untried/neg/t6601.check new file mode 100644 index 000000000..1410e1b11 --- /dev/null +++ b/tests/untried/neg/t6601.check @@ -0,0 +1,4 @@ +AccessPrivateConstructor_2.scala:2: error: constructor PrivateConstructor in class PrivateConstructor cannot be accessed in class AccessPrivateConstructor + new PrivateConstructor("") // Scalac should forbid accessing to the private constructor! + ^ +one error found |