blob: 5ca67088de4f5da34ae0ad19aeb89157785c60af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// NOTE: according to SI-4728, this shouldn't even compile...
class A
class B
// default arguments do not participate in overload resolution
class Foo(val x: A = null) {
def this(bla: B*) {
this(new A)
}
}
object Test extends App {
assert((new Foo).x != null)
}
|