Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/throws/DefaultArgs.java
Denis Zharkov 4022982760 Add synthetic argument to default constructors
It's need to add synthetic argument (of type that user can't use)
to constructors with default arguments to avoid clashing with
real user's constructor having the same set of parameters
and additional int's arguments.
2015-03-11 17:45:28 +03:00

36 lines
570 B
Java

package test;
class JavaClass {
void testMethod(One instance) {
try {
new One(1);
}
catch (E1 e) {}
try {
new One(1, 0, null);
}
catch (E1 e) {}
try {
new One();
}
catch (E1 e) {}
try {
One.one$default(instance, 1, 1);
}
catch (E1 e) {}
try {
TestPackage.one(1);
}
catch (E1 e) {}
try {
TestPackage.one$default(1, 0);
}
catch (E1 e) {}
}
}