Fixed issue with final variables and overloading
This commit is contained in:
committed by
Pavel V. Talanov
parent
de21670851
commit
1fe978e216
@@ -33,7 +33,7 @@ public open class Field(val identifier : Identifier,
|
||||
val declaration : String = docComments.toKotlin("\n", "", "\n") +
|
||||
modifiersToKotlin() + identifier.toKotlin() + " : " + `type`.toKotlin()
|
||||
if (initializer.isEmpty()) {
|
||||
return declaration + ((if (isVal() && !isStatic() && writingAccesses == 1)
|
||||
return declaration + ((if (isVal() && !isStatic() && writingAccesses != 0)
|
||||
""
|
||||
else
|
||||
" = " + Converter.getDefaultInitializer(this)))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class Identifier<T>(_myName : T?, _myHasDollar : Boolean) {
|
||||
private val myName : T? = null
|
||||
private val myName : T?
|
||||
private var myHasDollar : Boolean = false
|
||||
private var myNullable : Boolean = true
|
||||
public open fun getName() : T? {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class Identifier(_myName : String?, _myHasDollar : Boolean) {
|
||||
private val myName : String? = null
|
||||
private val myName : String?
|
||||
private var myHasDollar : Boolean = false
|
||||
private var myNullable : Boolean = true
|
||||
public open fun getName() : String? {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class Identifier<T>(_myName : T?, _myHasDollar : Boolean) {
|
||||
private val myName : T? = null
|
||||
private val myName : T?
|
||||
private var myHasDollar : Boolean = false
|
||||
private var myNullable : Boolean = true
|
||||
public open fun getName() : T? {
|
||||
|
||||
Reference in New Issue
Block a user