mark wrapper methods that pass default values of parameters as synthetic

#KT-7314 Fixed
This commit is contained in:
Dmitry Jemerov
2015-04-10 17:20:55 +02:00
parent 900a16a315
commit 9434e4bee9
11 changed files with 15 additions and 37 deletions
@@ -0,0 +1,6 @@
class A(value: Int = 1)
fun box(): String {
val constructors = javaClass<A>().getConstructors().filter { !it.isSynthetic() }
return if (constructors.size() == 2) "OK" else constructors.size().toString()
}