diff options
Diffstat (limited to 'tests/untried/neg/t7870.check')
-rw-r--r-- | tests/untried/neg/t7870.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/untried/neg/t7870.check b/tests/untried/neg/t7870.check new file mode 100644 index 000000000..d9db911ac --- /dev/null +++ b/tests/untried/neg/t7870.check @@ -0,0 +1,4 @@ +t7870.scala:1: error: in class C, multiple overloaded alternatives of constructor C define default arguments. +class C(a: Int = 0, b: Any) { + ^ +one error found |