Generated constructors with default parameter values are marked with kotlin.jvm.overloads annotation

This commit is contained in:
Valentin Kipyatkov
2015-04-07 21:27:10 +03:00
parent 1afbb961ee
commit 9b80d49bab
18 changed files with 46 additions and 30 deletions
@@ -1,7 +1,7 @@
// ERROR: Property must be initialized or be abstract
import A.Nested
class A(nested: Nested = Nested(Nested.FIELD)) {
class A [overloads] (nested: Nested = Nested(Nested.FIELD)) {
class Nested(p: Int) {
companion object {