Generate constructor without parameters if primary constructor has only parameters with default values

#KT-3085 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2012-12-25 12:28:56 +04:00
parent d4a8ed5ae6
commit 808c5abc0f
24 changed files with 343 additions and 20 deletions
@@ -0,0 +1,8 @@
class A {
class object {
class Foo(val a: Int = 1) {}
}
}
// CLASS: A$object$Foo
// HAS_DEFAULT_CONSTRUCTOR: true